312-50 ยท Cryptography
Encryption algorithms and hashing
DES, 3DES, AES, RC4, Blowfish, RSA, ECC, Diffie-Hellman, MD5, SHA family, HMAC, key sizes and block sizes.
Key points
- DES: 56-bit key, 64-bit block, obsolete. 3DES: deprecated.
- AES: 128-bit block, 128/192/256-bit keys, current standard.
- Blowfish: 64-bit block. RC4: stream cipher, broken.
- Asymmetric: RSA, ECC, Diffie-Hellman (key agreement).
- Hashes: MD5 (128-bit, broken), SHA-1 (160-bit, broken for collisions), SHA-2 (SHA-256, SHA-512).
- HMAC: a secret key added to a hash for message authentication.
Practice questions
What is the block size of AES regardless of key length?
- 64 bits
- 128 bits
- 192 bits
- 256 bits
Show answer
Answer: B. 128 bits
AES always uses 128-bit blocks; only the key length varies (128, 192, 256). 64-bit blocks belong to DES, 3DES and Blowfish.
Which of these are public-key (asymmetric) algorithms or key-agreement schemes?
- RSA
- AES
- Elliptic curve cryptography (ECC)
- Blowfish
- Diffie-Hellman
Show answer
Answer: A. RSA, C. Elliptic curve cryptography (ECC), E. Diffie-Hellman
RSA, elliptic-curve cryptography and Diffie-Hellman all rely on public-key mathematics. AES and Blowfish are symmetric block ciphers.
True or false: an HMAC is simply a hash of the message, so anyone can recompute it.
Show answer
Answer: False
HMAC mixes a secret key into the hash, so only holders of the key can produce or verify a valid tag. A plain hash can be recomputed by anyone.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
