Applied Cryptography
Which of the following correctly describes the hash functions SHA-2 and SHA-3?
- ASHA-3 is an improved version of SHA-2 that keeps the same internal structure and only lengthens the output
- BSHA-3 is based on a sponge construction different from that of SHA-2, and SHA-2 is also widely used today
- CSHA-256 is a member of SHA-3: in the SHA-3 family, the one with a 256-bit output is called SHA-256
Show answer and explanation
Answer: B. SHA-3 is based on a sponge construction different from that of SHA-2, and SHA-2 is also widely used today
SHA-2 is a family of hash functions including SHA-224, SHA-256, SHA-384 and SHA-512, built on the Merkle–Damgård construction, which passes blocks through a compression function one after another. SHA-3 was standardized in 2015 as FIPS 202 based on Keccak, chosen in a NIST competition, and uses a sponge construction that absorbs the input into a large internal state and squeezes out the output. SHA-3 was not created because SHA-2 was broken; it serves as an alternative with a different structure, and SHA-2 is still widely used. SHA-1, on the other hand, had a real collision published in 2017 and is no longer used for purposes such as digital signatures.
- A. The internal structure of SHA-3 is completely different from that of SHA-2.
- B. Correct. Two families with different structures are both used as standards.
- C. SHA-256 is a member of SHA-2. The SHA-3 function with a 256-bit output is written SHA3-256.