What is a hardware security module (HSM)?

A hardware security module (HSM) is a tamper-resistant physical device that safeguards cryptographic keys and performs cryptographic operations. Here is what the term means, where it appears and what it changes for a post-quantum migration.

On this page

What is a hardware security module (HSM) and why does it come up in post-quantum planning?

If a vendor document, tender or audit request names an hardware security module (HSM) and asks whether it supports post-quantum algorithms, you need to know what the device is before you can answer. The NIST CSRC glossary defines an HSM as a physical device that safeguards and manages cryptographic keys and performs cryptographic processing, and adds that an HSM is or contains a cryptographic module, citing NIST SP 800-57 Part 2 Rev. 1 as its source. NIST SP 1800-16B and 1800-16C use a similar definition, describing an HSM as providing tamper-evident and intrusion-resistant protection and management of digital keys and other secrets. The abbreviation is HSM, and the NIST glossary lists the term across several NIST documents.

Security architects, PKI owners and procurement reviewers meet the term most often where keys must stay under local control: key custody for encryption and signing keys, the private keys of certificate authorities, and the keys behind payment and document-signing services. AWS describes an HSM as a computing device that processes cryptographic operations and provides secure storage for cryptographic keys, and its CloudHSM service is one hosted form of the same idea. Microsoft's Azure Key Vault Managed HSM uses Marvell LiquidSecurity adapters and describes them as FIPS 140-3 Level 3 validated. Check the validation certificate for the exact module and firmware version a vendor runs, not the product family name.

For post-quantum planning, the question is whether the HSM's firmware and driver stack can generate, store and use the new algorithms. The OASIS PKCS #11 v3.2 standard, published as an OASIS Standard dated 3 June 2026, is the programming interface that HSM applications target and includes sections for ML-DSA, ML-KEM and SLH-DSA, the algorithms standardized in NIST FIPS 203, FIPS 204 and FIPS 205. The new encapsulation functions, C_EncapsulateKey and C_DecapsulateKey, are only callable when the library and HSM firmware implement version 3.2. Ask the vendor for the PKCS #11 version, the firmware build, and whether the validation covers the post-quantum mechanisms, because a validation issued before those algorithms were added does not show that they are supported.

Which names and identifiers mean hardware security module?

This table lists the names, abbreviations, documents and interfaces you will meet when reading about hardware security modules, and what each one refers to. Use it to match a term in a vendor document, tender or audit request to the source that defines it. Terms in the same row are not interchangeable: a certification standard, a programming interface and a definition each answer a different question.

Name or identifierWhat it refers toWhere you will see it
HSMAbbreviation for hardware security module, a physical device that safeguards and manages cryptographic keys and performs cryptographic processingNIST CSRC glossary and most vendor documentation
NIST CSRC glossary HSM entryThe NIST definition of HSM, which says the device is or contains a cryptographic module and cites NIST SP 800-57 Part 2 Rev. 1Listed among several NIST publications, including NIST CSWP 39-upd1, NIST SP 1800-13C, NIST SP 1800-19B, NIST SP 800-171r3, NISTIR 8301 and NISTIR 8320
NIST SP 1800-16B and NIST SP 1800-16CNIST documents that define an HSM as a physical device giving tamper-evident, intrusion-resistant protection of keys and secrets, and note that FIPS 140-2 specifies HSM requirementsCited as sources for the HSM definition on the NIST CSRC glossary
NIST SP 800-57 Part 2 Rev. 1NIST guidance cited by the glossary as the source of the HSM and cryptographic module definitionsCited by the NIST CSRC glossary HSM and cryptographic module entries
FIPS 140-2Earlier NIST module requirements standard, dated 12/03/2002, that specifies requirements for HSMsReferenced in NIST SP 1800-16B and 1800-16C; federal agencies may accept validated modules through 21 September 2026
FIPS 140-3Current NIST module requirements standard, published 22 March 2019, which supersedes FIPS 140-2 and defines four security levelsUsed in validation certificates and vendor statements, such as the Level 3 claim for Azure Key Vault Managed HSM
PKCS #11OASIS programming interface that HSM applications and drivers call. Version 3.2 is the OASIS Standard dated 3 June 2026Application and driver documentation, and migration guides from PKI or key store tools
Cryptographic module (FIPS 140 term)Hardware, software or firmware that implements approved security functions within a cryptographic boundary. An HSM is or contains oneNIST CSRC glossary, and validation records in the CMVP list

Where does an HSM appear in systems and vendor documents?

HSMs rarely announce themselves by name. They appear in certificate authority designs, application integration layers, cloud service catalogs, procurement paperwork and vendor claims about validation. Knowing which of these you are reading tells you what to check next.

PKI and certificate authority key protection

Certificate authorities and other PKI operators commonly keep their signing keys inside an HSM so that the private key never leaves the device in usable form. When a PKI design document, key ceremony record or CA policy names an HSM, treat that as the place where root and issuing CA keys live. For a post-quantum migration, check which HSM firmware and library versions the CA runs, because the signing algorithms and the interface used to reach them both have to change.

Applications that call PKCS #11

Many applications reach an HSM through the PKCS #11 interface, a standard programming API that drivers and libraries implement. The application code names the library, and the library talks to the device. Check the PKCS #11 version the library implements and the version the HSM firmware supports, since newer mechanisms and key management functions appear only in newer versions. Ask the vendor which PKCS #11 version their library implements before assuming post-quantum mechanisms are available.

PKCS #11 v3.2 spec

Cloud HSM services

Cloud providers offer HSMs as a hosted service, for example AWS CloudHSM and Azure Key Vault Managed HSM. You manage the keys and the service configuration while the provider runs the hardware. AWS states that applications using PKCS #11, JCE, CNG or KSP can migrate to CloudHSM with fewer application changes. Confirm which interfaces a given cloud HSM exposes and which post-quantum mechanisms the provider has announced for it, since those details differ by service.

AWS CloudHSM docs

Tenders and audit requests

Procurement documents and audit requests often ask whether the HSM is validated, and at which level. Your answer should name the exact module, its validation certificate and the firmware version it was validated with. A statement that a product is an HSM does not show that it is validated. Ask the vendor for the certificate reference and confirm it on the government validation list rather than accepting a summary.

Vendor documents naming FIPS 140-3 Level 3

Vendor datasheets and cloud documentation sometimes describe an HSM as FIPS 140-3 Level 3 validated. Microsoft, for example, describes the hardware adapters behind Azure Key Vault Managed HSM this way. Read the claim as a statement about a specific module and version, not about the whole service. FIPS 140-3 defines four qualitative security levels, so verify the validated module name, version and level on the CMVP listing before relying on the wording in a vendor document.

Managed HSM overview

How does an HSM hold keys and run cryptography in a system?

The central design choice of an HSM is that private keys never leave the device. The NIST CSRC glossary describes an HSM as a physical device that safeguards and manages cryptographic keys and performs cryptographic processing, and NIST SP 1800-16B and 1800-16C add that it provides tamper-evident and intrusion-resistant protection for digital keys and other secrets. In operation, an application does not copy a key out of the module to sign a message or decrypt a value. It sends the data to the HSM, the operation runs on the device, and only the result comes back. AWS describes the same role as a computing device that processes cryptographic operations and provides secure storage for cryptographic keys. For an architect, the practical consequence is that an attacker who compromises the host server still cannot read the key material, although they may still request operations through the interface while they have access.

Applications reach an HSM through a defined interface rather than by direct hardware access. The OASIS PKCS #11 Specification Version 3.2, published as an OASIS Standard dated 3 June 2026, is the standard programming interface that HSM applications and drivers target. Teams should confirm that the library and HSM firmware they run implement version 3.2 before depending on its newer functions, such as the key encapsulation calls C_EncapsulateKey and C_DecapsulateKey, because those functions are new in that version. Migration guides from cloud providers note that applications using PKCS #11, JCE, CNG or KSP can often move with fewer changes, but the exact compatibility depends on the module and driver in use.

What lies inside the device is defined by its cryptographic boundary, the set of hardware, software and firmware that implements approved security functions. Validation under FIPS 140-3, which defines four security levels, tests that boundary, its interfaces, roles, authentication, self-tests and physical security. Before choosing a device, ask the vendor for the validation certificate, the module name and version, the security level, and the exact firmware and hardware revision covered. Confirm the cryptographic boundary in that certificate, since a cloud service may use a different module from the one named in marketing material. The sources listed on this page do not say which post-quantum algorithms a given HSM supports in its validated configuration, so check that point against the certificate and the vendor's documentation.

Where the HSM sits between an application and its keys

The diagram starts with an application that needs a cryptographic operation, such as signing. The application calls a PKCS #11 library, which is the standard programming interface that HSM applications and drivers target. The library passes key and signing requests across an interface to the HSM firmware. The private key stays inside the HSM cryptographic boundary and never leaves it, so the application receives only results such as signatures. When checking a deployment, confirm that the library and firmware implement PKCS #11 Version 3.2, since the encapsulation functions are new in that version, and confirm the module's validation status under FIPS 140-3.

Application requests reach the private key only through the PKCS #11 library and HSM firmware.

What is the standardization and validation status of HSMs and their interfaces?

The validation status of an HSM depends on which standard its cryptographic module was tested against. FIPS 140-3 was published on 22 March 2019, became effective on 22 September 2019, and superseded FIPS 140-2. The Cryptographic Module Validation Program (CMVP), run by NIST together with the Canadian Centre for Cyber Security, began accepting submissions under FIPS 140-3 in September 2020. Federal agencies can accept FIPS 140-2 validated modules through 21 September 2026, after which those modules move to the CMVP Historical list and may be used only for existing systems. If your HSM carries a FIPS 140-2 certificate, check its status on the CMVP list and plan a replacement with a FIPS 140-3 validated module before that date.

The programming interface is a separate question from the module's validation. OASIS published PKCS #11 Version 3.2 as an OASIS Standard dated 3 June 2026, superseding Version 3.1. Version 3.2 adds functions for the post-quantum mechanisms ML-DSA, ML-KEM and SLH-DSA, including C_EncapsulateKey and C_DecapsulateKey. Applications reach an HSM through a library and firmware, so the library and firmware must both implement version 3.2 before an application can call these new functions. The sources listed on this page do not establish which HSM products support v3.2.

Before relying on any HSM for a post-quantum migration, ask the vendor three things in writing: which FIPS 140 standard and certificate number covers the exact model, firmware and version you will buy, which PKCS #11 version the vendor library implements, and whether the firmware supports ML-KEM and ML-DSA through that library. Confirm the answers against the CMVP list and the vendor's own release notes rather than against marketing material. Validation covers the module tested at the stated firmware version, so a later firmware update can change the picture.

What should a migration team check for HSMs in its inventory?

This sequence gives the migration team a verified list of every HSM and HSM-backed key use, the validation status and PKCS #11 readiness of each device, and the vendor commitments needed before post-quantum key operations are planned. It produces an inventory record that security reviewers and vendors can check.

  1. List every HSM and HSM-backed key

    The migration team lists each hardware security module in the environment, including on-premises appliances, cloud-hosted HSM services and any HSM embedded in a vendor product. For each device, it records which keys are held there, which certificate authority or signing service depends on them, and which business owner is responsible. The step is complete when every HSM-backed key has an entry in the inventory and an owner has confirmed the list. Teams often miss keys held by products they did not deploy themselves, so the review should include procurement records and vendor contracts as well as the architecture diagrams.

  2. Record FIPS validation level and certificate

    For each HSM, the team records the FIPS 140 validation level and the certificate number as stated by the vendor, then checks that certificate in NIST's Cryptographic Module Validation Program listing. FIPS 140-3 defines four qualitative security levels, and the team should note the exact level each device claims. Federal agencies may accept FIPS 140-2 validated modules only through 21 September 2026, so any device validated only under 140-2 should be flagged for review. The step is complete when each device has a verified certificate entry and any gaps are assigned to a named vendor contact.

  3. Identify applications using PKCS #11

    The team identifies which applications reach each HSM through PKCS #11, the standard programming interface that HSM drivers implement. For each application, it records the PKCS #11 library file and its version, as well as any other integration paths such as Java Cryptographic Extension, Cryptography API: Next Generation or Key Storage Provider. These records show which applications will need library updates before any post-quantum mechanism can be used. The step is complete when each application is linked to its library version and integration method in the inventory.

  4. Confirm PKCS #11 v3.2 and firmware support

    The team confirms whether each library and HSM firmware implements PKCS #11 Specification Version 3.2, which OASIS published as an OASIS Standard dated 3 June 2026. Version 3.2 adds the C_EncapsulateKey and C_DecapsulateKey functions, which applications need before they can call the encapsulation mechanisms defined for post-quantum key establishment. Because these functions are new in 3.2, a library or firmware that predates 3.2 cannot use them regardless of the HSM model. The step is complete when the team has written confirmation from each vendor naming the library version and firmware build that implement these functions, and any device without that confirmation is marked as not ready.

  5. Assess cloud HSM migration paths

    Where a team plans to move PKI workloads to a hosted service, it checks whether the target provider supports the same integration paths as the current environment. AWS states that customers migrating PKI that uses PKCS #11, Java Cryptographic Extension, Cryptography API: Next Generation or Key Storage Provider can move to AWS CloudHSM with fewer application changes, according to the AWS CloudHSM User Guide. The team should verify that statement against its own applications and library versions rather than assume it holds for every workload. The step is complete when each candidate hosted service has a documented list of required application changes.

  6. Request vendor post-quantum roadmaps

    The team sends each HSM vendor a written request for its post-quantum roadmap, asking which ML-KEM, ML-DSA and SLH-DSA parameter sets the device will support, the expected dates for firmware releases that add them, and the validation plan for those mechanisms. ML-KEM, ML-DSA and SLH-DSA are the algorithms NIST published as final standards in FIPS 203, FIPS 204 and FIPS 205 on 13 August 2024. Responses should be filed with the inventory and compared against the PKCS #11 readiness recorded in earlier steps. The step is complete when every vendor has answered in writing or the team has recorded that no answer was given.

What do buyers and engineers mix up about HSMs?

HSM terms are easy to conflate in vendor documents, tenders and integration plans. The four points below separate related technologies, validation standards, interface versions and post-quantum parameter sets so you can check each claim against its source.

A TPM or secure element is not an HSM

A Trusted Platform Module (TPM) or secure element is a tamper-resistant chip built into a device to store secrets and support that device's trust functions. An HSM is a physical device that safeguards and manages cryptographic keys and performs cryptographic processing, and NIST's glossary describes it as a cryptographic module. The two serve different roles, so a device chip does not substitute for an HSM in a key custody design. When a vendor says a product uses secure hardware, ask whether the component is an HSM, a TPM, or a secure element.

NIST HSM glossary

FIPS 140-2 and FIPS 140-3 are not interchangeable

FIPS 140-3 supersedes FIPS 140-2, which NIST says is the older standard that HSM requirements were written against. FIPS 140-2 validated modules can be accepted by federal agencies through 21 September 2026, after which they move to the CMVP Historical list and may be used only for existing systems. Tenders should name the standard, the validation level and the certificate number, and reviewers should check that certificate on the CMVP list rather than relying on a vendor's summary.

FIPS 140-2 federal acceptance end
21 Sep 2026
CMVP program page

PKCS #11 v3.2 support depends on firmware

OASIS published PKCS #11 v3.2 as an OASIS Standard dated 3 June 2026, and it adds functions such as C_EncapsulateKey and C_DecapsulateKey. A library that reports v3.2 support does not prove that the HSM firmware implements the new functions. Applications calling these functions need both the library and the firmware to support version 3.2. Ask the vendor for the firmware version and a test of the specific mechanisms you plan to use, such as the ML-KEM encapsulation calls.

PKCS #11 v3.2 spec

Post-quantum parameter sets are not all named

NIST's FIPS 203 defines ML-KEM with three parameter sets (ML-KEM-512, ML-KEM-768 and ML-KEM-1024), while FIPS 204 covers ML-DSA and FIPS 205 covers SLH-DSA, each with its own parameter sets. A vendor claim that a product supports ML-KEM or ML-DSA does not say which parameter sets are implemented. Check the datasheet or the test report for the exact names, and confirm the mechanism identifiers in the PKCS #11 v3.2 sections for the sets you need.

FIPS 203 text

Common questions about hardware security modules and post-quantum support

What does HSM stand for, and is it the same as a cloud HSM?

HSM stands for hardware security module. NIST's glossary defines it as a physical device that safeguards and manages cryptographic keys and performs cryptographic processing, and AWS describes it as a computing device that processes cryptographic operations and provides secure storage for keys. A cloud HSM is an HSM delivered as a hosted service rather than a device you own and rack in your own facility. The protective function is the same concept in both cases, but who operates the hardware, who holds administrative control and where the device sits are different. Confirm with the provider how the hardware is validated, who can administer it and what evidence they supply for their deployment model.

Is an HSM the same as a cryptographic module?

Not exactly. NIST's glossary says an HSM is or contains a cryptographic module, so every HSM includes one but a cryptographic module can also be software or firmware with no dedicated device around it. FIPS 140 defines a cryptographic module as hardware, software or firmware that implements approved security functions within a defined cryptographic boundary. When a buyer asks for a validated module, they are asking about the boundary and the tested functions, which may cover only part of a product. Check which component is listed on the validation certificate and whether that boundary matches the HSM you plan to use.

Is the HSM standard published, and does FIPS 140-3 apply?

There is no single HSM standard in the sources listed here; the relevant federal requirements come from FIPS 140. NIST published FIPS 140-3 on 22 March 2019, and it superseded FIPS 140-2. FIPS 140-3 became effective on 22 September 2019, and the Cryptographic Module Validation Program began accepting submissions under it in September 2020. The standard defines four increasing qualitative security levels. NIST notes that FIPS 140-2 validated modules can be accepted by federal agencies through 21 September 2026, after which they move to the historical list and may be used only for existing systems. Confirm which standard a given module was validated against and its level before relying on it.

Do my products use an HSM through PKCS #11?

The sources here do not say which of your products use an HSM or how they reach one. PKCS #11 is the standard programming interface that HSM applications and drivers target, so an application that talks to an HSM usually does so through a PKCS #11 library supplied by the HSM vendor. Other integration paths also exist, such as the Java Cryptographic Extension, Cryptography API: Next Generation and Key Storage Provider, which AWS names as migration paths to its cloud HSM. To find out, inspect your application configuration for PKCS #11 module paths, check your key management and PKI settings, and ask each vendor which interface their product uses.

What does PKCS #11 v3.2 change for applications?

OASIS published PKCS #11 Specification Version 3.2 as an OASIS Standard dated 3 June 2026, superseding Version 3.1. Version 3.2 adds mechanisms for ML-DSA, ML-KEM and SLH-DSA, and adds key management functions C_EncapsulateKey and C_DecapsulateKey with new mechanism flags. Because these functions are new in 3.2, an application can only call them if the PKCS #11 library and the HSM firmware both implement version 3.2. An application written against an older version will not gain these operations by updating the application code alone. Ask your HSM vendor which library version and firmware release support 3.2 and confirm the functions work in your deployment.

What should I ask a vendor about FIPS 140-3 validation and post-quantum support?

Ask for the validation certificate number and the exact module name and version that it covers, because the certificate lists the tested component, not the whole product. Confirm the security level and whether the cryptographic boundary includes the functions you will use. Ask whether the module was validated under FIPS 140-3 or still under FIPS 140-2 and what the validation date means for your federal customers. For post-quantum support, ask which parameter sets and standards (such as FIPS 203, 204 and 205) the module implements, which PKCS #11 version it supports and whether the firmware and library you would deploy are the tested versions. Ask for their roadmap in writing and for evidence rather than general assurances.

How DeployOpen works on this

DeployOpen approaches HSM-backed post-quantum work by first mapping which keys the hardware module holds and which applications call it through PKCS #11, AWS CloudHSM or Azure Managed HSM. The result is a written scope, a documented build plan and handover material that your security and compliance teams can review against your own environment.

How we scope

  • We inventory the HSMs in use, the applications that call them and the key types each one holds.
  • We confirm whether your PKCS #11 library and HSM firmware support version 3.2 before planning any encapsulation work.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.

How we build

  • We configure and test post-quantum key mechanisms in your environment, following the vendor documentation for your module.
  • We check FIPS 140 validation status against the NIST Cryptographic Module Validation Program listings for the exact module and version you run.
  • We test application integration paths, including PKCS #11 calls, before any change reaches production systems.

How we hand over

  • You receive documentation of the configuration, key inventory, test results and the open items that remain.
  • The documentation records the module versions, library versions and validation status we confirmed, so reviewers can check them.
  • We show how each result was reached so your auditors can trace it back to evidence in your own environment.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Retainers cover firmware and library updates, since PKCS #11 v3.2 support depends on what your vendor ships.
  • Ask your vendor and your DeployOpen scope to confirm which module versions and validation certificates apply to your deployment.

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.