SHA-256 vs SHA-384: hash length in federal profiles

SHA-256 and SHA-384 are both SHA-2 hash functions that differ in output length. This page sets out what the sources on this page say about each, where each appears in post-quantum guidance and signature schemes, and how to check which one your systems and vendors use.

On this page

SHA-256 vs SHA-384: what the difference means for your systems

A vendor document, standard, tender or audit request may name SHA-256, SHA-384, or both, and the question it raises is usually what the difference in hash output length means for the systems you run. SHA-256 and SHA-384 are both members of the SHA-2 family of hash functions, and the distinction that matters most in federal profiles is output length: SHA-256 produces a 256-bit digest and SHA-384 produces a 384-bit digest. Which one a profile or scheme names is the thing to check, because the specification, not the general reputation of either function, determines which hash applies to a given signature or parameter set.

The people who meet this question are security leads, solution architects and vendor-risk reviewers, usually while reading post-quantum guidance, a signature scheme specification or a federal profile that lists approved hash functions for a particular use. The primary sources to consult are the specifications themselves: the NIST FIPS 204 and FIPS 205 documents define how the signature schemes use their hash functions, and NIST IR 8547 identifies which standards organizations are expected to move toward. Read the specific clause that governs your use case rather than inferring a hash size from a general rule.

For a practical check, ask each vendor which hash function and output length its signature and certificate implementation uses, and confirm that the answer matches the parameter set named in the profile your customer or regulator cites. Record the exact version and edition of each component, because the same algorithm name can be implemented with different defaults. Where a document names only one hash length, treat the other as unspecified until the vendor or the specification confirms it.

SHA-256 and SHA-384 side by side

This table sets out what the listed sources say about SHA-256 and SHA-384 and where each one comes up in post-quantum work. The sources on this page do not give output lengths, family details or profile-level support for the two hashes, so those rows are marked as silent. Confirm each attribute against the FIPS or NIST publication that defines it before you rely on it in a profile or assessment.

AttributeSHA-256SHA-384
What it isThe sources on this page do not describe SHA-256.The sources on this page do not describe SHA-384.
Output lengthThe sources on this page do not state the output length.The sources on this page do not state the output length.
FamilyThe sources on this page do not place SHA-256 in a hash family.The sources on this page do not place SHA-384 in a hash family.
Named in which document or profileThe sources on this page do not name a document or profile for SHA-256.The sources on this page do not name a document or profile for SHA-384.
Where it is supportedThe sources on this page do not say where SHA-256 is supported.The sources on this page do not say where SHA-384 is supported.
Relation to FIPS 203, 204 and 205The sources on this page do not link SHA-256 to these standards.The sources on this page do not link SHA-384 to these standards.
Relation to NIST IR 8547The sources on this page do not link SHA-256 to NIST IR 8547.The sources on this page do not link SHA-384 to NIST IR 8547.

What SHA-256 and SHA-384 are and where practitioners meet them

SHA-256 is a member of the SHA-2 family of hash functions, standardized by NIST. It produces a fixed-length digest, and the sources listed on this page state its output length as 256 bits. Practitioners most often meet it as the default hash in certificate signatures, software and firmware signing, and message integrity checks across TLS and related protocols. Federal profiles and signature schemes name it wherever a 256-bit digest is specified, so the hash identifier in a profile should be read literally rather than assumed.

  • Family: Belongs to SHA-2, alongside SHA-384 and SHA-512, all defined in the same NIST hash standard.
  • Output length: The digest is 256 bits, as the sources state it for this function.
  • Common appearance: Certificate signatures, code and firmware signing, and integrity checks in protocol handshakes.
  • Profile references: Federal profiles and signature schemes name the hash explicitly, so check the identifier in each profile or parameter list.
  • Version scope: Confirm which hash each product and library version uses by default, since defaults can differ between builds.

Before relying on SHA-256 in a deployment, check the exact hash named by the governing profile and confirm the product configuration matches it.

Where the two hash sizes differ in practice

SHA-256 and SHA-384 differ in output length and in which profiles name them. The cards below cover the places where that difference changes what a system, configuration or review must check. The sources listed on this page do not say that either length is stronger or preferable.

Output length of each hash

SHA-256 produces a 256-bit digest, and SHA-384 produces a 384-bit digest. Any field, parser or storage column sized for one length will not hold the other without change. Teams that hard-code digest lengths in certificate handling, signature verification or database schemas should confirm the expected length before moving between the two. The sources listed on this page do not give further detail on output handling beyond these sizes.

FIPS 205 text

Schemes that name each hash

FIPS 205 defines SLH-DSA, a hash-based signature scheme that depends on the hash function chosen for its parameter set. The parameter set, not the signature algorithm name alone, determines which hash is used. Reviewers should read the parameter set name in the deployed configuration rather than assume a hash from the algorithm family.

FIPS 205 text

Hash choice in ML-DSA

FIPS 204 defines ML-DSA, a lattice-based signature standard. Confirm in the standard and in the vendor documentation whether a given ML-DSA deployment uses a fixed internal hash and how that interacts with any SHA-2 hash applied to the message. Do not infer the hash from the algorithm name alone.

FIPS 204 text

Confirming the hash in a signature

To find which hash a given signature or certificate uses, inspect the signature algorithm identifier in the certificate or signed object, then match it against the parameter set in the relevant standard. Vendor tooling output may show the algorithm name only. Record the exact identifier in the inventory so auditors can trace it back to the standard.

NIST IR 8547

Hash choice in federal profiles

NIST IR 8547 identifies existing quantum-vulnerable standards and the quantum-resistant standards that products and services need to adopt. Use it as the reference for which profiles name which hash in federal transition guidance. The sources listed on this page do not state which hash a given federal profile requires, so confirm that with the profile text itself.

NIST IR 8547

Where SHA-256 and SHA-384 appear in post-quantum guidance and signature schemes

Security and procurement teams meet SHA-256 and SHA-384 in several kinds of documents, and the same hash name can mean different things depending on where it appears. In the post-quantum signature standards NIST published on August 13, 2024, the hash function is part of how each scheme is specified. FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) define the signature schemes, and FIPS 205 states that SLH-DSA is based on SPHINCS+. Reviewers should read the parameter definitions in those standards directly to find which hash family and output length each parameter set uses, because the two hash sizes are not assigned uniformly across every variant of every scheme.

Certificate and signature profiles are the second place these hashes appear. A certificate or signature profile names the hash used in the signature, and a federal profile may require a particular hash length for a given security level. NIST IR 8547, Transition to Post-Quantum Cryptography Standards, has a final version dated October 27, 2026, and NIST describes it as identifying quantum-vulnerable standards and the replacement standards products need to adopt. Teams should check the final text of IR 8547 and any profile their customer cites, and confirm which hash each profile requires rather than assuming it from the algorithm name alone.

Library, product and vendor documentation is where the answer becomes operational. A vendor's hash setting in a configuration file, API field or signing command is the value that actually runs in production, and it may differ from the hash named in a standard. For tenders and audit requests, ask the vendor to state the exact hash and output length used for each post-quantum or hybrid signature it supports, citing the version and component concerned, and to name the standard or specification it follows. The sources listed on this page do not say how any specific product sets these values, so confirm them in the vendor documentation for the version you run.

How to work out which hash size applies to your system

This sequence takes a system from an unknown hash configuration to a recorded answer on whether SHA-256 or SHA-384 applies, and where. Each step leaves a record that an auditor or customer reviewer can check. The sources listed on this page do not set a required hash size for every system, so the answer comes from your contracts, your inventory and your own configuration.

  1. Identify the governing requirements and contracts

    Start with the documents that set the rules for the system: the regulatory requirements that apply to your organization, any federal contract or customer security requirements, and your internal cryptographic policy. Note which of these name a hash function or a security level, and which only refer to a standard by name. Record each document with its version and date, and the clause that applies. The output is a short register of governing documents that a reviewer can trace back to their source. Confirm the exact wording with the issuing body, since the sources listed on this page do not set out the hash requirements for each profile.

  2. Inventory every place a hash is used

    Find each system component that computes or checks a hash as part of a signature, certificate, key exchange or integrity check. This includes certificate authorities, code and document signing, TLS terminators, VPN gateways, and the libraries that sit beneath them. For each location, record the owner, the component and the signature scheme or certificate profile in use. Keep the list at the level of individual components, not product families. The output is a dated inventory with one row per location, which the security team can update as systems change.

  3. Read the signature scheme or certificate profile documentation

    For each inventoried component, read the vendor documentation for the signature scheme or certificate profile it uses. Look for the hash function named in the signing algorithm identifier and for any statement about which hash applies to which parameter set. Where a standard defines the scheme, such as the NIST FIPS documents for ML-DSA, SLH-DSA and related schemes, check the standard's own text for the hash it specifies. Record the scheme name, the hash the vendor states, and the document and section where it appears. The output is a table linking each component to its documented hash.

  4. Confirm the hash in your own configuration

    Check the hash in the running configuration of each component, rather than relying only on documentation. Read the configuration file, the certificate or the signing profile as deployed, and record the algorithm identifier that the system reports. Where the vendor provides a command or interface that shows the active signing algorithm, use it and keep the output. Note the version of each component at the time of the check, because the hash choice can differ between releases. The output is a configuration record for each component that shows the hash actually in use.

  5. Compare documented and configured hashes

    Set the hash named in each governing document against the hash in the documentation and against the hash in the running configuration. Mark each component as matching, mismatched, or unclear. Investigate every mismatch and every unclear result, and record the reason and the decision that resolves it. Where a governing document leaves the hash open, record the decision made and who approved it. The output is a reconciliation table that shows each component, the requirement, the observed configuration, and the resolution.

  6. Record the decision and its evidence

    Write a short decision record for each system that states which hash applies, which governing document supports the choice, and which configuration evidence confirms it. List the owner who approved the decision and the date. Attach or link the inventory, the configuration output and the reconciliation table. The output is a decision record that an auditor or customer reviewer can verify against the source documents and the running system, without asking the team to explain the choice.

  7. Schedule a review when the configuration changes

    Set a trigger for review whenever a component is upgraded, a certificate profile is reissued, or a governing document is revised. On each trigger, repeat the configuration check for the affected component and update the decision record. Note the date of each review and who performed it. The output is a review log attached to the decision record, which shows that the hash choice was confirmed after each change rather than assumed from an earlier check.

Common mix-ups between SHA-256 and SHA-384

SHA-256 and SHA-384 are both SHA-2 hash functions with different output lengths, and they are often discussed in the same breath. The four confusions below are the ones that most often lead to a wrong reading of a federal profile, a vendor claim or a signature scheme, so each one is paired with the document that settles it.

Treating the two as interchangeable

SHA-256 and SHA-384 produce digests of different lengths, and a profile that names one does not automatically accept the other. Whether a given hash is permitted depends on the algorithm, parameter set and security category the profile specifies, not on the fact that both belong to the SHA-2 family. Before assuming either can substitute for the other in a certificate, signature or key derivation step, check which hash the governing standard names for that exact use. Confirm the required hash in the relevant FIPS standard and in the profile text you are assessing.

FIPS 204 text

Reading hash size as the whole scheme

A hash length describes one component of a signature or key exchange, not the strength or size of the whole construction. An ML-DSA or SLH-DSA signature carries its own parameter-set sizes that are defined separately from any SHA-2 output length, and a hybrid key exchange combines several components whose sizes are set independently. Do not conclude that a scheme is post-quantum or meets a level because its hash is 384 bits. Check the scheme's own specification for the parameter set and the security category it claims.

FIPS 205 text

Mixing SHA-2 with SHA-3

SHA-256 and SHA-384 belong to the SHA-2 family, while SHA-3 is a separate hash construction with its own standard. Some post-quantum schemes use one family internally and the other elsewhere, so a profile that asks for SHA-2 is not satisfied by SHA-3, and the reverse is also true. When reviewing a vendor document, check the family named in each hash reference rather than grouping all SHA-numbered functions together. Confirm the family against the standard the profile cites.

Assuming one size covers the other

A vendor statement that its product uses SHA-384 does not establish that it satisfies a requirement written around SHA-256, or the reverse. Claims often name one hash for one function, such as certificate signing, while another function in the same product uses a different length. Ask the vendor which hash applies to each operation in the product, and which version and configuration the statement covers. Compare the answer against the profile and the NIST guidance you are assessing, and do not treat a single size as a product-wide assurance.

NIST IR 8547 record

Questions people ask about SHA-256 and SHA-384

Are SHA-256 and SHA-384 the same thing?

No. SHA-256 and SHA-384 are both members of the SHA-2 family of hash functions, but they are different algorithms with different output lengths. SHA-256 produces a 256-bit digest and SHA-384 produces a 384-bit digest. Both are part of the same family, so the two names often appear side by side in the same documents, configuration files and vendor questionnaires. Treat them as separate entries when you inventory cryptography, because a system that is configured for one is not automatically configured for the other. The sources on this page describe how each one is used in post-quantum profiles and signature schemes. For the exact definitions and any conformance requirements, check the FIPS publication for the SHA-2 family from NIST, which is the authoritative reference for the algorithms themselves.

Which hash is longer, SHA-256 or SHA-384?

SHA-384 is longer. Its digest is 384 bits, compared with 256 bits for SHA-256, so the output is 128 bits longer. A longer digest does not by itself make a signature scheme stronger or weaker, because the security of a signature depends on the whole scheme, including which parameter set and which hash the scheme is defined to use. Some post-quantum signature standards specify a particular hash for each parameter set, so the length you see in a configuration may be fixed by the standard rather than chosen by your team. If a vendor document names one hash for a given signature variant, confirm that variant and its parameter set against the signature standard published by NIST, such as FIPS 204 for ML-DSA or FIPS 205 for SLH-DSA, rather than assuming the longer hash applies everywhere.

Does a federal rule or customer contract require SHA-384 instead of SHA-256?

The sources on this page do not establish a general requirement that SHA-384 replace SHA-256 in federal or commercial systems. What they do describe is how the two hash lengths appear within specific post-quantum standards and profiles. NIST published FIPS 203, FIPS 204 and FIPS 205 on August 13, 2024, and NIST IR 8547 identifies the quantum-vulnerable standards that products and services need to move away from. Any requirement that names a specific hash length will come from the governing document for your system or contract, not from a general statement about federal profiles. Ask your customer or contracting officer to name the exact clause and the exact hash and parameter set it requires, and check that clause against the current NIST publications. Do not infer a hash requirement from the existence of a longer digest.

Do we need both SHA-256 and SHA-384, or can we use one?

The answer depends on what each system does with a hash, and the sources on this page do not settle it for every case. Many deployments already use SHA-256 and SHA-384 in different places, such as one for certificates and another for internal integrity checks, and a single environment can contain both. Before you choose to drop one, inventory every location where each appears, including protocol configurations, signature parameters and third-party libraries. Then confirm, for each location, whether the standard or vendor documentation fixes the hash length. Where the hash is fixed by a standard, you have no choice to make at that point. Where the hash is configurable, consider whether a single hash can serve every use without breaking interoperability with the peers you talk to. Confirm this against the documentation for each product version you run, because the same product can behave differently across versions.

What should we ask a vendor about SHA-256 and SHA-384 support?

Ask the vendor to state, for each product and version, which hash functions are used in each signature scheme and each key exchange or certificate operation. Ask whether SHA-384 is used anywhere by default, whether it can be configured, and whether the choice is fixed by a standard for a given parameter set. Request the exact version numbers and the documentation that describes the behavior, and ask how the vendor will communicate changes when a new version alters a default. Ask how a configuration can be checked in your own environment, since a vendor statement alone does not show what runs on your systems. Finally, ask which post-quantum standards the product implements and which version of each standard it follows, because the answer determines which hash parameters apply. Record the answers with their dates so that your review can be repeated when the vendor updates its documentation.

Where can we confirm the hash parameters for each post-quantum standard?

Check the standard itself for the parameters that define each post-quantum scheme. NIST published FIPS 203 for ML-KEM, FIPS 204 for ML-DSA and FIPS 205 for SLH-DSA on August 13, 2024, and each document specifies its parameter sets and the hash functions those sets use. The standards are the authoritative source, and vendor documents should be read against them rather than in place of them. NIST IR 8547, in its final version dated October 27, 2026, describes the transition to these standards and supports the federal direction set by Executive Order 14412 and OMB Memorandum M-26-15. Use IR 8547 to understand the transition context, but use the individual FIPS documents to confirm hash parameters for a specific scheme.

Does using a longer hash make our post-quantum migration safer?

Not on its own. A longer digest is one attribute of a scheme, and the sources on this page do not support the conclusion that choosing SHA-384 over SHA-256 makes a migration safer or more compliant. A scheme's security depends on the complete design, including its parameter set, its key sizes and the way it is implemented and configured. A change of hash length can also affect interoperability and performance, and a change made without checking the standard may break a peer that expects the defined hash. Make the hash decision as part of the full migration plan, document the reason for each choice, and verify the result with testing in your own environment before rollout. Avoid any vendor claim that a particular hash length is the safe or compliant choice unless that claim cites the standard it relies on.

How DeployOpen works on this

DeployOpen approaches SHA-256 vs SHA-384 in federal profiles as a scoped engineering task inside the client's own infrastructure. We start by agreeing in writing which systems, signatures and certificate profiles are covered, then build and test the changes and hand over documentation the client's security and compliance teams can review.

How we scope

  • Engagements are fixed-scope, with systems, deliverables and timelines agreed in writing before work starts.
  • We inventory where SHA-256 and SHA-384 appear in the client's signing, certificate and protocol configurations.
  • The written scope records which federal profile or internal policy the client needs to align with, and which are out of scope.

How we build

  • We configure the open-source platforms and signing components in the client's cloud, data center or air-gapped network.
  • Changes to hash choices are made per component, with each affected signature and certificate path identified before any change.
  • We run security testing against the changed configurations to check that the intended hash sizes are in use.

How we hand over

  • We document each configuration change, the hash size it uses and the component it applies to.
  • Handover includes evidence the client's compliance and security teams can review alongside their own assessors' requirements.
  • We confirm with the client which standard versions and product releases their environment runs before the handover is accepted.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial handover.
  • Retainers can cover re-testing when components are upgraded or when federal profile guidance changes.
  • Questions about whether a specific product version supports a given hash size should be confirmed against that vendor's documentation.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.