惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
量子位
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
Y
Y Combinator Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
B
Blog
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
博客园 - 聂微东
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks

Quarrelsome

Stop Making TUIs The Emacsification of Software Vulnerability Research Is Cooked I Went To SQL Injection Court 14 DNS Nerds Don't Control The Internet 14 DNS Nerds Don't Control The Internet Be Coachable Be Coachable Is Extended Random A Malicious NSA Plot? Is Extended Random A Malicious NSA Plot? Starfighter, Summer 2015 Starfighter, Summer 2015 Checksums, MACs, and Signatures The Hiring Post The Hiring Post Against DNSSEC A Liquid Nitrogen Cocktail Party You Don't Want XTS How To Safely Generate A Random Number Applied Cryptography Engineering
Checksums, MACs, and Signatures
Quarrelsome · 2015-06-23 · via Quarrelsome

A Checksum

Examples: CRC-32, MD5, SHA3.

Use a checksum when you want to protect data from accidental corruption.

Checksums are deterministic and don’t rely on secrets. An adversary who can make guesses about the kinds of data you send can spoof a checksum. So checksums aren’t useful against adversaries. Trying to use them for security is a famous class of cryptographic mistakes; for instance, it’s why we use SSH2 rather than SSH1.

A MAC

Examples: HMAC-SHA2, keyed SHA3, Poly1305, GCM’s GHASH construction.

Use a MAC any time you’re protecting

A Signature

Which do I need?