Classical algorithm · Hash function
SHA-2 and SHA-3 SHA-256, SHA-384, SHA-512, SHA3 and SHAKE
SHA-2 and SHA-3 are not broken by quantum computers and need no replacement. Some policies require SHA-384 or longer. Hash-based signatures rest on these functions alone.
Against a quantum computer
Not broken. Grover's algorithm finds a preimage of an n-bit hash in about 2^(n/2) evaluations. Quantum collision search needs about 2^(n/3) queries and as much quantum memory, and is not cheaper than classical collision search once hardware is counted.
Replacement
None needed. SHA-384 or longer where a policy requires it.
- NIST IR 8547NIST does not expect to transition away from its symmetric standards. Primitives with at least 128 bits of classical security meet category 1; the 112-bit level is disallowed in 2030.
- CNSA 2.0SHA-384 or SHA-512 is required for U.S. National Security Systems.
Notes
- No migration. SLH-DSA, LMS and XMSS rest on these functions alone.
- SHA-1 and MD5 are retired because of classical collision attacks. That is unrelated to quantum computers.