Artifact GuideGLOBALFIPS Hash Algorithms

SHA-2 vs SHA-3 under FIPS

A cited-source comparison for choosing, procuring, and evidencing SHA-2 and SHA-3 hash functions in FIPS-sensitive systems.

Use it to separate algorithm approval, CAVP evidence, protocol compatibility, and FIPS 140-3 module claims.

Author
Sorena AI
Published
May 9, 2026
Updated
Jul 24, 2026
Sections
5

Structured answer sets in this page tree.

Primary sources
6

Cited legal and guidance references.

Publication metadata
Sorena AI
Published May 9, 2026
Updated Jul 24, 2026
Overview

Keep SHA-2 when the protocol, certificate profile, signature scheme, validated module, or customer requirement names a SHA-2 function. Use SHA-3 when the surrounding design permits the corresponding FIPS 202 hash, or when an approved use needs variable-length output. The families use different internal constructions, but SHA3-256 does not automatically provide more than SHA-256. Record the exact function, output length, purpose, implementation, evidence, and FIPS 140-3 module boundary.

Side-by-side comparison

FIPS 180-4 SHA-2 vs FIPS 202 SHA-3: what changes operationally?

This comparison helps decide whether the work is algorithm selection, validation evidence, protocol compatibility, procurement wording, or FIPS 140-3 module assurance.

Review all sources
First framework
FIPS 180-4 SHA-2

Use FIPS 180-4 for SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256 decisions, while handling SHA-1 as a legacy-sensitive case.

Second framework
FIPS 202 SHA-3

Use FIPS 202 for SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128, and SHAKE256 decisions.

Comparison row 1

Function scope

FIPS 180-4 SHA-2

FIPS 180-4 defines SHA-1 and the SHA-2 family: SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256.

FIPS 202 SHA-3

FIPS 202 defines SHA3-224, SHA3-256, SHA3-384, SHA3-512, plus SHAKE128 and SHAKE256 extendable-output functions.

Operational implication

Do not compare only the family names. Record the exact function and output length before making a design, validation, or procurement claim.

Comparison row 2

Covered actors

FIPS 180-4 SHA-2

FIPS 180-4 applies to federal applications that select one of its secure hash algorithms, including systems operated for agencies under contract. Private and commercial organizations may also adopt it.

FIPS 202 SHA-3

FIPS 202 applies to federal applications that select SHA-3, while uses must also follow the NIST publication that approves the particular XOF use. Private and commercial organizations may adopt these functions.

Operational implication

The actor's role does not select the function. The application, protocol, approved use, validation record, and system requirement do.

Comparison row 3

Trigger

FIPS 180-4 SHA-2

SHA-2 is still common where TLS profiles, digital signatures, certificate ecosystems, firmware tooling, or customer controls name SHA-256 or SHA-384.

FIPS 202 SHA-3

SHA-3 or fits better where a new design, protocol, or standard explicitly allows FIPS 202 functions and validated implementations are available.

Operational implication

Use SHA-2 where protocol profiles, certificate ecosystems, or firmware require it; switch to SHA-3 only when the standard or design explicitly allows FIPS 202.

Comparison row 4

Core obligations

FIPS 180-4 SHA-2

FIPS 180-4 can satisfy the secure-hash requirement for Federal applications when a FIPS 180-4 function is the appropriate function.

FIPS 202 SHA-3

FIPS 202 can satisfy a secure-hash requirement with SHA-3 when that fixed-output function is appropriate. is an XOF, not an approved hash function, and its approved uses are specified separately by NIST.

Operational implication

Confirm the exact operation and approved use. SHA-2 and SHA-3 fixed-output hashes can both satisfy secure-hash requirements, but needs use-specific approval and all substitutions remain subject to interoperability constraints.

Comparison row 5

Evidence

FIPS 180-4 SHA-2

A SHA-2 implementation claim should point to NIST validation evidence for the tested implementation, not only to FIPS 180-4.

FIPS 202 SHA-3

A SHA-3 or implementation claim should point to validation evidence for the tested function implementation, not only to FIPS 202.

Operational implication

Point to the validation record for the specific function and implementation; SHA-2 and SHA-3 records are separate and cannot be reused across families.

Comparison row 6

Timing

FIPS 180-4 SHA-2

Keep SHA-2 when it is approved for the use case, supported by current validation evidence, and required by the protocol or customer environment.

FIPS 202 SHA-3

Do not switch to SHA-3 just to modernize a label if the surrounding protocol, certificate profile, module certificate, or customer requirement does not support it.

Operational implication

Keep the existing algorithm if it is approved, validated, and supported by the current protocol profile; do not modernize labels without functional justification.

Comparison row 7

Enforcement

FIPS 180-4 SHA-2

A SHA-2 validation confirms that the specific SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, or SHA-512/256 implementation produces correct outputs for the tested function. For a FIPS 140-3 module claim, the implementation must be inside the defined cryptographic boundary, the algorithm implementation must be listed as an approved security function on the module certificate, and the Security Policy must document the relevant approved service.

FIPS 202 SHA-3

A SHA-3 or validation covers the specific SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128, or SHAKE256 implementation tested. For use in a FIPS 140-3 module's approved mode, each implemented SHA-3 or SHAKE function must be CAVP tested and validated on all of the module's operating environments; outside standards that explicitly permit another use, SHAKE128 and SHAKE256 may only be used as standalone algorithms.

Operational implication

Check that the validation covers the specific function, capabilities, and operational environment being claimed; SHA-2 and SHA-3 validation entries are not interchangeable.

Comparison row 8

Overlap

FIPS 180-4 SHA-2

SHA-2 and SHA-3 are both NIST-approved secure-hash algorithm families and both are subject to validation requirements when used as approved hash algorithms in federal cryptographic modules.

FIPS 202 SHA-3

Algorithm implementations for SHA-2 and SHA-3 are tested and validated under , but algorithm validation does not, by itself, constitute FIPS 140-3 module validation. Procurement evidence for either family should distinguish algorithm validation records from module validation certificates.

Operational implication

Check the current NIST status for the exact hash operation, and keep the algorithm-validation record separate from any CMVP module claim for both families.

Comparison row 9

Decision rule

FIPS 180-4 SHA-2

For SHA-2, ask for the exact function, implementation version, validation entry, operating environment, and any FIPS 140-3 module boundary that uses it.

FIPS 202 SHA-3

For SHA-3 or , ask the same questions and include the selected SHAKE output length if an XOF is used.

Operational implication

Ask for the exact function, implementation version, validation entry, and operational environment for either family; output length is an additional required field when SHAKE is used.

Practical decision rule

Which hash standard to apply

  • Use FIPS 180-4 SHA-2 when the protocol, certificate ecosystem, signature scheme, or procurement specification already relies on SHA-2 and the current NIST approval status is confirmed.
  • Use FIPS 202 SHA-3 or when the design, protocol, or NIST guidance explicitly requires a SHA-3 or extendable-output function and the implementation has a matching validation entry.
  • Do not migrate from SHA-2 to SHA-3 solely to modernize a label if the surrounding protocol, certificate, or module dependencies do not support the change.
  • Review the hash function choice after applicable NIST transition guidance, module revalidation cycles, or protocol updates change the permitted use or evidence required for either family.
Section 1

Use SHA-2 vs SHA-3 as a scope and evidence decision

Start by naming the exact function: SHA-256 is not the same claim as SHA-512/256, SHA3-256, or SHAKE256 with a chosen output length. The hash family, output length, implementation version, operational environment, and consuming protocol all affect the evidence a reviewer can rely on.

FIPS 180-4 says either FIPS 180-4 or FIPS 202 must be implemented wherever a secure hash algorithm is required for Federal applications. That does not require every SHA-2 deployment to move to SHA-3. The selected function must be approved for its particular use and fit the surrounding standard, protocol, validation, and assurance claim.

SHA-2 uses the iterative structure specified in FIPS 180-4, while SHA-3 uses KECCAK's sponge construction. Corresponding fixed-output pairs have the same generic collision strengths in FIPS 202: 112 bits for 224-bit digests, 128 for 256-bit digests, 192 for 384-bit digests, and 256 for 512-bit digests. SHA-3 also has resistance to length-extension attacks expected from a random function of the same output length, but that property alone does not make it a protocol-compatible substitute.

  • Use SHA-2 when the controlling protocol, certificate profile, signature scheme, KDF, or customer requirement names a FIPS 180-4 function.
  • Use SHA-3 when the controlling design, standard, or assurance case permits the fixed-output FIPS 202 hash. Use only for a purpose approved by the applicable NIST publication and record its output length.
  • Avoid rewriting a working SHA-2 design solely because SHA-3 exists; first check interoperability, validation coverage, and the actual relying standard.
  • Record the exact algorithm name and output length in procurement and evidence files so a reviewer does not infer unsupported coverage.
Section 2

Do not confuse algorithm approval with module validation

A FIPS 180-4 or FIPS 202 citation supports the algorithm family and function definition. It does not by itself prove that a product, library, cloud service, HSM, firmware image, or software module is validated for a buyer's configuration.

For implementation evidence, look for the public validation entry and treat any ACVP/ACVTS session material as supporting test records. Where a product makes a FIPS 140-3 claim, check the CMVP module certificate and Security Policy separately. The useful evidence links the exact implementation and operational environment to the hash function being claimed.

  • Ask vendors for the algorithm certificate or validation entry for the specific hash implementation, not only a standards citation.
  • Ask whether the hash function is inside the validated cryptographic module boundary and approved mode when the claim depends on FIPS 140-3.
  • Treat a module certificate, algorithm validation, protocol conformance statement, and procurement answer as separate evidence items.
  • Recheck evidence after library, firmware, operating environment, module boundary, or service configuration changes.
Section 3

Compare compatibility before planning a migration

SHA-3 supplements SHA-2; it is not a universal drop-in replacement for every deployed use. FIPS 202 says SHA-3 hash functions can be alternatives to SHA-2 functions, but the surrounding protocol or certificate profile still decides whether that alternative is allowed.

For many deployed systems, SHA-256 or SHA-384 remains the practical answer because TLS profiles, signature formats, certificate ecosystems, firmware update tooling, or customer controls already specify those functions. Adopt SHA-3 when a specific architecture or standard supports it and the product boundary has a validated implementation.

For SHAKE128 with d output bits, collision strength is min(d/2, 128) and preimage strength is at least min(d, 128); SHAKE256 uses a 256-bit ceiling. Longer output is an extension of shorter output for the same message, so protocols must bind the chosen output length and purpose rather than treating length as an incidental formatting choice.

  • Check whether the consuming protocol permits the target SHA-3 or function before changing code.
  • Check whether vendors can provide current validation evidence for the exact implementation and operational environment.
  • Keep decisions explicit because SHAKE128 and SHAKE256 are extendable-output functions, not fixed-length SHA3-128 or SHA3-256 aliases.
  • Document why SHA-2 remains acceptable when interoperability, validation, or customer requirements still depend on it.
Section 4

Procurement questions that prevent overclaims

Procurement language should require the evidence behind a SHA-2 or SHA-3 claim. A useful answer names the hash function, implementation, version, operating environment, validation reference, module boundary, approved-mode status, and any protocol that constrains the choice.

Be especially careful with broad statements such as "FIPS compliant hashing" or "SHA-3 ready." Those phrases are not enough for audit or customer assurance unless they are tied to a cited standard and implementation-specific validation evidence.

  • Which exact hash functions are used: SHA-256, SHA-384, SHA-512/256, SHA3-256, SHA3-384, SHAKE128, or SHAKE256?
  • Is the algorithm implementation validated, and what certificate or validation entry identifies it?
  • Is the hash used inside a FIPS 140-3 validated module boundary, and is the claimed service available in approved mode?
  • Which protocol, certificate profile, signature scheme, KDF, MAC, or internal design decision requires this hash choice?
  • What changes would require updated evidence: library version, firmware, operating environment, module boundary, protocol profile, or output length?
Section 5

Review checklist for SHA-2 and SHA-3 evidence

Use this checklist when a design review, customer answer, supplier review, or audit file depends on SHA-2 vs SHA-3. The resulting record should let a later reviewer identify the cryptographic boundary without reconstructing it from memory.

  • Name the exact FIPS source: FIPS 180-4 for SHA-2 functions, FIPS 202 for SHA-3 and functions.
  • Name the exact function and output length used by each product, protocol, certificate profile, or service.
  • Attach the public validation entry for the tested implementation when making an implementation-conformance claim; retain ACVP/ACVTS session records as internal supporting evidence rather than a substitute certificate.
  • Attach CMVP module evidence when the public claim depends on a FIPS 140-3 validated module or approved mode.
  • Record when SHA-2 is retained because the surrounding protocol, certificate ecosystem, customer requirement, or validation path controls the choice.
  • Record when SHA-3 or is adopted because the surrounding standard, design, or validation path actually supports it.
Primary sources

References and citations

csrc.nist.gov
Referenced sections
  • Public search entry point for checking algorithm validation records used in procurement evidence.
"validation-search"
csrc.nist.gov
Referenced sections
  • Requires each implemented SHA-3 and SHAKE function to be validated on all module operating environments and limits SHAKE use outside explicitly identified standards.
Related guides

Explore more topics

AES FIPS 197 requirements and evidence
AES FIPS 197 guidance for identifying supported key sizes, separating the block cipher from modes of operation, and avoiding unsupported FIPS validation claims.
CAVP Algorithm Validation and ACVP Testing
How CAVP algorithm validation, the ACVP protocol, the ACVTS test system, and CMVP module validation fit together without overstating a FIPS claim.
CAVP Validation Evidence Workflow for FIPS Algorithms
Workflow for collecting CAVP validation evidence and ACVP/ACVTS test records: implementation identity, tested parameters, environments, and CMVP handoff records.
FIPS 180-4 and FIPS 202 secure hash guidance
Choose and evidence SHA-2, SHA-3, and SHAKE use under FIPS 180-4, FIPS 202, CAVP validation, and FIPS 140-3 module claims.
FIPS 186-5 and FIPS 204 digital signatures
Compare FIPS 186-5 classical digital signatures with FIPS 204 ML-DSA, including scope, algorithm choices, key-use limits, and validation evidence boundaries.
FIPS 203 ML-KEM vs RSA and ECDH key establishment
Compare FIPS 203 ML-KEM with RSA and ECDH key-establishment schemes using NIST SP 800-56A, SP 800-56B, CAVP, and CMVP evidence.
FIPS 203, 204, and 205 Post-Quantum Algorithms
FAQ on how FIPS 203 ML-KEM, FIPS 204 ML-DSA, and FIPS 205 SLH-DSA fit FIPS-approved cryptographic algorithm planning, implementation evidence, and validation checks.
FIPS Algorithm Procurement Evidence FAQ
What procurement teams should collect before accepting FIPS algorithm or module claims: CAVP certificates, CMVP module status, security policy scope, and supplier change triggers.
FIPS approved algorithm selector workflow
A cited workflow for selecting FIPS and NIST-approved cryptographic algorithms without overstating module validation, CAVP evidence, or approved-mode claims.
FIPS approved mode procurement: certificates, boundaries, and evidence
Procurement guidance for FIPS approved mode claims: how to check CMVP certificates, CAVP evidence, module boundaries, tested environments, and supplier evidence before purchase.
FIPS crypto transition and deprecation tracker
Track FIPS algorithm transitions, withdrawn guidance, CAVP evidence, CMVP module impact, procurement triggers, and approved-mode caveats without overstating validation status.
FIPS cryptographic algorithm selector
Choose between FIPS algorithm standards for AES, SHA-2, SHA-3, digital signatures, ML-KEM, ML-DSA, and SLH-DSA without overstating validation scope.
FIPS KDF and MAC coverage for validated modules
Map FIPS 140-3 KDF and MAC coverage to approved security functions, CAVP evidence, self-tests, service indicators, and module security policy entries.
FIPS Key Management Mapping for Algorithms and SSP Evidence
Map FIPS 140-3 key management requirements to approved algorithms, SSP establishment methods, CAVP evidence, module boundaries, and key-use records.
FIPS Procurement Evidence Review Workflow: CAVP, CMVP, Approved Mode
Review FIPS crypto procurement evidence by separating CAVP algorithm certificates from CMVP module certificates, Security Policy scope, approved mode, operating environment, change impact, and retention records.
FIPS validation certificates for cryptographic algorithms
How to read CAVP algorithm validation certificates and CMVP module validation certificates without overstating FIPS-approved cryptographic algorithm claims.
FIPS-approved cryptographic algorithms FAQ
Answers to common FIPS algorithm questions: approved security functions, CAVP validation, CMVP module scope, AES modes, SHA-2, SHA-3, signatures, and post-quantum algorithms.
How FIPS 180-4 and FIPS 202 Hash Functions Fit FIPS Algorithm Approval
Identify SHA-1 and SHA-2 in FIPS 180-4 and SHA-3 and SHAKE in FIPS 202, then check current-use status and CAVP/CMVP evidence separately.
How FIPS 186-5 Signature Algorithms Fit FIPS Approval
Use FIPS 186-5 for RSA, ECDSA, deterministic ECDSA, EdDSA, HashEdDSA, DSA verification limits, approved hashes, and CAVP/CMVP evidence boundaries.
ML-DSA vs ECDSA under FIPS 204 and FIPS 186-5
Compare ML-DSA and ECDSA for FIPS-aligned digital signature designs, including parameter choices, key handling, CAVP algorithm evidence, and CMVP module boundaries.
Post-quantum FIPS 203, 204, and 205: ML-KEM, ML-DSA, and SLH-DSA
An official source guide to the three NIST post-quantum FIPS standards: when ML-KEM, ML-DSA, and SLH-DSA apply, what evidence to keep, and how CAVP and CMVP claims differ.
Post-Quantum Migration for FIPS Cryptography
Plan post-quantum migration for FIPS cryptography by separating ML-KEM key establishment, ML-DSA and SLH-DSA signatures, CAVP algorithm evidence, and CMVP module validation boundaries.
Post-Quantum Migration Tracker for FIPS 203, 204, and 205
Track post-quantum cryptography migration evidence for FIPS 203 ML-KEM, FIPS 204 ML-DSA, FIPS 205 SLH-DSA, CAVP algorithm certificates, and CMVP module boundaries.
TLS use-case mapping for FIPS algorithm evidence
Map TLS uses to FIPS algorithm, CAVP, CMVP, approved-mode, certificate-authority, and evidence checks without overstating protocol validation claims.
What does FIPS 197 AES mean for FIPS-approved algorithms?
FIPS 197 defines AES as a FIPS-approved block cipher, but AES use alone is not the same as CAVP algorithm testing or FIPS 140-3 module validation.