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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
Y
Y Combinator Blog
IT之家
IT之家
博客园 - 聂微东
L
LangChain Blog
爱范儿
爱范儿
H
Help Net Security
GbyAI
GbyAI
F
Fortinet All Blogs
B
Blog
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
D
DataBreaches.Net
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享

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?