spec-fips-180-4-sha2
NIST standard specifying SHA-1, SHA-224/256/384/512, and SHA-512/224 and SHA-512/256 iterative hash functions: padding, parsing, IVs, and compression steps.
Schemes: SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, SHA-512/256
Findings (quotes checked against the source text)
-
SHA-256 and SHA-512 family hashes are specified as the approved hash functions, with SHA-3 (FIPS 202) as the alternative permitted for federal use.
Either this Standard or Federal Information Processing Standard (FIPS) 202 must be implemented wherever a secure hash algorithm is required for Federal applications, including as a component within other cryptographic algorithms and protocols.
-
Hash functions are designed so that finding a preimage or a collision is computationally infeasible, which underpins signature and MAC security.
The hash algorithms specified in this Standard are called secure because, for a given algorithm, it is computationally infeasible 1) to find a message that corresponds to a given message digest, or 2) to find two different messages that produce the same message digest.
-
SHA-512/t is defined as a family of truncated SHA-512 variants with distinct IVs generated by a fixed procedure; SHA-512/224 and SHA-512/256 are the approved instances.
SHA-512/224 (t = 224) and SHA-512/256 (t = 256) are approved hash algorithms.
-
Message length is limited to below 2^64 bits for the 32-bit-word functions and below 2^128 bits for the 64-bit-word functions, with 512-bit or 1024-bit blocks respectively.
When a message of any length less than 264 bits (for SHA-1, SHA-224 and SHA-256) or less than 2128 bits (for SHA-384, SHA-512, SHA-512/224 and SHA-512/256) is input to a hash algorithm, the result is an output called a message digest.
Numbers (as extracted, not quote-checked)
- SHA-256 message digest size: 256 bits
- SHA-512 message digest size: 512 bits
- SHA-256 block size: 512 bits
- SHA-512 block size: 1024 bits
- SHA-256 message schedule and rounds: 64 words, 64 rounds
- SHA-512 message schedule and rounds: 80 words, 80 rounds
For builders
Use SHA-256 or SHA-512 family (or SHA-3 per FIPS 202) as the hash primitive in a PQ chain, and note that the spec itself gives no PQ security analysis, which lives in SP 800-107.
Limits
Specifies hash algorithms only; says nothing about post-quantum security, Grover-reduced margins, or signature/chain design; security strength is deferred to SP 800-107.
Topics: hash-functions standards-policy