Learn · Specialist

HSM & PQC Operations

8 sections

Deep dive into Hardware Security Modules: PKCS#11 v3.2 PQC mechanisms, vendor comparison, firmware migration, and FIPS 140-3 validation.

For you, every role: what this means
Security Architect
Step through eight PKCS#11 PQC operations with the on-prem versus cloud comparison, then the nine-vendor comparison by PQC maturity, algorithms and FIPS validation, and the fleet sizing for ten enterprise use cases.
Researcher / Academic
Track CMVP and CAVP PQC validation status across HSM vendors in Step 4: it is the current record of which modules have validated ML-KEM and ML-DSA implementations.
Certification & Validation Engineer
Step 4 tracks CMVP and CAVP PQC validation status across HSM vendors — read it by stage: a CAVP validation of ML-KEM or ML-DSA is the prerequisite, not a module certificate.
IT Ops / DevOps
Plan the firmware migration from classical to PQC with dual partitions in Step 3 and size the fleet in Step 5: the two operations a PQC rollout adds to an HSM estate.

A Hardware Security Module (HSM) is a tamper-resistant physical device that performs cryptographic operations and protects keys within a certified security boundary. The defines four increasing, qualitative security levels. A module's certificate states one overall level; its Security Policy lists the level reached in each requirement area.

Level 1

Lowest level: basic requirements, production-grade components, no specific physical-security mechanisms required. Not software-only: a Level 1 module can be hardware, software, firmware or hybrid, though many software libraries are validated here.

Level 2

Tamper-evidence (seals, coatings). Role-based authentication. Minimum OS requirements.

Level 3

Tamper-resistant. Identity-based authentication. Physical/logical separation of interfaces. Keys zeroed on tamper detection.

Level 4

Tamper-responsive envelope. Environmental failure protection (voltage, temperature). Complete physical penetration protection.

HSM Integration Architecture

Application (TLS Server, CA, Key Manager)
PKCS#11 API (v3.2 with PQC mechanisms)
Provider Library (vendor-specific)
HSM Firmware (PQC algorithm engine)
Hardware Crypto Accelerator + DRBG + Tamper Protection

On-Prem vs Cloud HSM

On-Prem HSMs
  • • Thales Luna 7 (Network HSM, FIPS 140-3 L3)
  • • Entrust nShield 5 (FIPS 140-3 L3 certificates #5329 and #4745 cover the nShield 5s module)
  • • Utimaco u.trust GP HSM Se-Series (PCIe; see its FIPS status in the vendor deep dive below)

PQC firmware is shipping. Algorithm sets, APIs and validated configurations differ by vendor — see the vendor deep dive below.

Cloud HSMs
  • • AWS CloudHSM (ML-DSA keys in the HSM; whether ML-DSA counts as FIPS-approved is unreconciled, see the Cloud HSM deep dive)
  • • Azure Dedicated HSM (Thales Luna 7; PQC needs a customer-administered firmware upgrade; retiring)
  • • Google Cloud HSM (Cloud KMS lists no PQC algorithm for HSM keys)

Cloud PQC support is uneven: check each service's own documentation (checked 15 Oct 2026)

Step 1 of 5

PKCS#11 v3.2 (OASIS Standard, 3 June 2026) introduces new mechanism types for post-quantum cryptography. These define how applications interact with PQC keys inside HSMs via the standard Cryptoki API.

Step 1 of 5

Algorithm availability, API support and certificate scope are separate questions. The records below show the source and checked date for each product; the documentation examples that follow describe the versions named in those examples.

The key takeaway

On-prem HSM vendors provide varying PQC algorithm and API support across firmware versions, and availability alone does not establish FIPS or Common Criteria certification.

✓ Reviewed by PQC Today

Step 1 of 4

AWS CloudHSM

Algorithm availability and validation evidence

Availability does not establish certification. These family-level records do not establish support for every parameter set, firmware or operating environment. Check the source for the exact scope.

ML-DSA: yes · Review: Pending Verification
PKCS#11 mechanism
vendor-defined: CKM_CLOUDHSM_ML_DSA_KEY_PAIR_GEN; CKM_CLOUDHSM_ML_DSA; CKM_CLOUDHSM_EXT_MU_ML_DSA
CAVP implementation certificate
unknown
Approved mode
unknown
Listed on the CMVP certificate
no (4703)
Checked on
2026-10-23
Read the source and scope

The PKCS #11 page marks all three ML-DSA mechanisms 'Vendor-defined mechanism' (parameter sets 44, 65, 87). FIPS mode: AWS CLI page says 'Starting September 1, 2026, ML-DSA is available in FIPS mode for hsm2m.medium clusters' (https://docs.aws.amazon.com/cloudhsm/latest/userguide/cloudhsm_cli-crypto-sign-mldsa.html). CMVP certificate 4703 (Marvell LS2 HSM Family, FIPS 140-3 level 3, active, latest update 2026-02-26) lists no ML-DSA, ML-KEM, SLH-DSA, LMS or XMSS in its approved-algorithm list (https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/4703); AWS names 4703 for hsm2m.medium (https://docs.aws.amazon.com/cloudhsm/latest/userguide/fips-validation.html). The CAVP certificate for ML-DSA on this module was not found in the sources read. The NIST security policy for certificate 4703 (Marvell LS2 HSM Family, firmware MARVELL-LS2-FW-10.02, dated 2026-01-29) lists ML-DSA key generation, signing and verification as a 'non-compliant' non-approved service run with fips_state = 0 (https://csrc.nist.gov/CSRC/media/projects/cryptographic-module-validation-program/documents/security-policies/140sp4703.pdf). AWS documentation says ML-DSA is available in FIPS mode on hsm2m.medium. The two statements differ, so approved-mode status is recorded as unknown. Newest release checked: CloudHSM Client SDK 5.18.0, released 2026-08-18 (document history, read 2026-10-23). Its release notes add ML-DSA key generation, signing and verification to the CloudHSM CLI, the PKCS #11 library, the JCE provider and the OpenSSL provider, and mention no ML-KEM, SLH-DSA, LMS or XMSS (https://docs.aws.amazon.com/cloudhsm/latest/userguide/latest-releases.html). The 5.18.0 notes list ML-DSA key types for OpenSSL-provider TLS offload on both FIPS and non-FIPS clusters; that is AWS's statement and differs from the NIST security policy above.

ML-KEM: unknown · Review: Pending Verification
PKCS#11 mechanism
none
CAVP implementation certificate
unknown
Approved mode
unknown
Listed on the CMVP certificate
no (4703)
Checked on
2026-10-23
Read the source and scope

The PKCS #11 mechanisms page (read 2026-10-22) lists no ML-KEM mechanism; the page does not say ML-KEM is unsupported, so availability stays unknown. CMVP certificate 4703 (Marvell LS2 HSM Family, FIPS 140-3 level 3, active, latest update 2026-02-26) lists no ML-DSA, ML-KEM, SLH-DSA, LMS or XMSS in its approved-algorithm list (https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/4703); AWS names 4703 for hsm2m.medium (https://docs.aws.amazon.com/cloudhsm/latest/userguide/fips-validation.html). Newest release checked: CloudHSM Client SDK 5.18.0, released 2026-08-18 (document history, read 2026-10-23). Its release notes add ML-DSA key generation, signing and verification to the CloudHSM CLI, the PKCS #11 library, the JCE provider and the OpenSSL provider, and mention no ML-KEM, SLH-DSA, LMS or XMSS (https://docs.aws.amazon.com/cloudhsm/latest/userguide/latest-releases.html).

SLH-DSA: unknown · Review: Pending Verification
PKCS#11 mechanism
none
CAVP implementation certificate
unknown
Approved mode
unknown
Listed on the CMVP certificate
no (4703)
Checked on
2026-10-23
Read the source and scope

The PKCS #11 mechanisms page (read 2026-10-22) lists no SLH-DSA mechanism; the page does not say SLH-DSA is unsupported, so availability stays unknown. CMVP certificate 4703 (Marvell LS2 HSM Family, FIPS 140-3 level 3, active, latest update 2026-02-26) lists no ML-DSA, ML-KEM, SLH-DSA, LMS or XMSS in its approved-algorithm list (https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/4703); AWS names 4703 for hsm2m.medium (https://docs.aws.amazon.com/cloudhsm/latest/userguide/fips-validation.html). Newest release checked: CloudHSM Client SDK 5.18.0, released 2026-08-18 (document history, read 2026-10-23). Its release notes add ML-DSA key generation, signing and verification to the CloudHSM CLI, the PKCS #11 library, the JCE provider and the OpenSSL provider, and mention no ML-KEM, SLH-DSA, LMS or XMSS (https://docs.aws.amazon.com/cloudhsm/latest/userguide/latest-releases.html).

LMS: unknown · Review: Pending Verification
PKCS#11 mechanism
none
CAVP implementation certificate
unknown
Approved mode
unknown
Listed on the CMVP certificate
no (4703)
Checked on
2026-10-23
Read the source and scope

The PKCS #11 mechanisms page (read 2026-10-22) lists no LMS mechanism; the page does not say LMS is unsupported, so availability stays unknown. CMVP certificate 4703 (Marvell LS2 HSM Family, FIPS 140-3 level 3, active, latest update 2026-02-26) lists no ML-DSA, ML-KEM, SLH-DSA, LMS or XMSS in its approved-algorithm list (https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/4703); AWS names 4703 for hsm2m.medium (https://docs.aws.amazon.com/cloudhsm/latest/userguide/fips-validation.html). Newest release checked: CloudHSM Client SDK 5.18.0, released 2026-08-18 (document history, read 2026-10-23). Its release notes add ML-DSA key generation, signing and verification to the CloudHSM CLI, the PKCS #11 library, the JCE provider and the OpenSSL provider, and mention no ML-KEM, SLH-DSA, LMS or XMSS (https://docs.aws.amazon.com/cloudhsm/latest/userguide/latest-releases.html).

XMSS: unknown · Review: Pending Verification
PKCS#11 mechanism
none
CAVP implementation certificate
unknown
Approved mode
unknown
Listed on the CMVP certificate
no (4703)
Checked on
2026-10-23
Read the source and scope

The PKCS #11 mechanisms page (read 2026-10-22) lists no XMSS mechanism; the page does not say XMSS is unsupported, so availability stays unknown. CMVP certificate 4703 (Marvell LS2 HSM Family, FIPS 140-3 level 3, active, latest update 2026-02-26) lists no ML-DSA, ML-KEM, SLH-DSA, LMS or XMSS in its approved-algorithm list (https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/4703); AWS names 4703 for hsm2m.medium (https://docs.aws.amazon.com/cloudhsm/latest/userguide/fips-validation.html). Newest release checked: CloudHSM Client SDK 5.18.0, released 2026-08-18 (document history, read 2026-10-23). Its release notes add ML-DSA key generation, signing and verification to the CloudHSM CLI, the PKCS #11 library, the JCE provider and the OpenSSL provider, and mention no ML-KEM, SLH-DSA, LMS or XMSS (https://docs.aws.amazon.com/cloudhsm/latest/userguide/latest-releases.html).

Step 1 of 6

PQC algorithms introduce new side-channel attack surfaces. An attacker with physical access to a module, or one who can observe its timing, power draw, electromagnetic emissions or the effect of injected faults, may learn about secret values from how a computation runs rather than from its output. HSM designs use countermeasures for lattice-based and hash-based operations that differ from classical protections.

Check the module's Security Policy, not the technique's name. The cards below describe attack classes and the countermeasure techniques discussed for them. Whether a given HSM implements a technique is stated, if at all, in the vendor's documentation and in the module's Security Policy; the existence of a technique does not show that a product uses it. On the validation side, CMVP has no approved non-invasive test metrics today:

“No additional requirements at this time” (NIST SP 800-140F, section 6.2, p. 2, March 2020)

If a vendor has publicly documented that a module mitigates a specific attack, FIPS 140-3 IG 12.A makes the lab address that claim:

“If a cryptographic module has been purposely designed, built and publicly documented to mitigate one or more specific attacks, this section is applicable and AS12.01 through AS12.04 (as applicable) shall be addressed regardless if the vendor of the module wishes to address the claim or not.” (FIPS 140-3 IG 12.A, Resolution, p. 132)

NTT Power Analysis

HIGH RELEVANCE

Number Theoretic Transform (NTT) operations in lattice-based algorithms show data-dependent power consumption patterns. An attacker with physical access can measure power traces to recover secret coefficients.

ML-KEMML-DSA
Attack type: Simple/Differential Power Analysis (SPA/DPA)
Countermeasure: Constant-time NTT implementation, power noise injection and algorithmic masking are the techniques discussed for this attack. Whether a given HSM implements them is stated, if at all, in the vendor documentation and in the Security Policy of the module.

ML-DSA Hedged Signing (FIPS 204 §3.4)

ML-DSA supports a "hedged" signing mode where the rnd parameter is set to a random value rather than zero. FIPS 204 §3.4 makes hedged signing the default variant and says “The use of fresh randomness during signing helps mitigate side-channel attacks”. It also permits a deterministic variant, and says that this variant “should not be used on platforms where side-channel attacks are a concern and where they cannot be otherwise mitigated”. PKCS#11 v3.2 lets the caller choose the variant (CKH_HEDGE_PREFERRED, CKH_HEDGE_REQUIRED or CKH_DETERMINISTIC_REQUIRED), so which variant a given HSM uses unless told otherwise is a property of that product. Look for it in the module's documentation and Security Policy rather than assuming it.

Step 1 of 5

Upgrading HSM firmware to support PQC algorithms requires careful planning. Each vendor has a different upgrade path, complexity, and recertification timeline.

  • Thales Luna 7
    Current → Target
    7.8.x or earlier → 7.9.0 or newer
    Algorithms Added
    ML-KEM-512/768/1024 (from 7.9.0), ML-DSA-44/65/87 (from 7.9.0) +1 more
    Complexity
    LOW
    Downtime (est.)
    30-60 minutes per HSM (planning assumption, not a Thales figure)
    FIPS certificate
    Certificate 4684 (Luna K7) lists no post-quantum algorithm; separate certificate 5450 (Luna T7) lists ML-KEM, ML-DSA and LMS.
  • Entrust nShield 5
    Current → Target
    13.6.x or earlier → 13.8+ (ML-KEM: 13.8.3+)
    Algorithms Added
    ML-KEM-512/768/1024, ML-DSA-44/65/87 +1 more
    Complexity
    LOW
    Downtime (est.)
    1-2 hours per HSM (planning estimate)
    FIPS certificate
    Certificate 4745 (nShield 5s) lists no post-quantum algorithm; an nShield 5s module is in CMVP Modules in Process (a queue position, not an outcome).
  • Utimaco u.trust GP HSM Se-Series
    Current → Target
    Version not stated by Utimaco → Quantum Protect firmware module
    Algorithms Added
    ML-KEM (FIPS 203), ML-DSA (FIPS 204) +2 more
    Complexity
    LOW
    Downtime (est.)
    1-3 hours per HSM (planning assumption, not a Utimaco figure)
    FIPS certificate
    Utimaco's product page gives no FIPS 140 statement for the post-quantum algorithms.
  • AWS CloudHSM
    Current → Target
    Current (classical) → Provider-managed (plus Client SDK 5 update)
    Algorithms Added
    ML-DSA-44/65/87
    Complexity
    LOW
    Downtime (est.)
    None for the customer — provider-managed
    FIPS certificate
    Provider-managed. Certificate 4703 (Marvell LS2 HSM Family) lists no post-quantum algorithm.
  • Azure Dedicated HSM
    Current → Target
    Thales Luna 7 firmware 7.0.3 (the version Azure documents) → Thales Luna 7.9.0 or newer (customer-administered)
    Algorithms Added
    ML-KEM (FIPS 203, Luna 7.9.0), ML-DSA (FIPS 204, Luna 7.9.0) +1 more
    Complexity
    LOW
    Downtime (est.)
    30-60 minutes per HSM (same planning assumption as Thales Luna 7)
    FIPS certificate
    Azure lists no post-quantum algorithm in the documents this lesson cites; Azure's own documentation was not matched to a certificate here.
  • Crypto4A QxHSM
    Current → Target
    Not published → Not published
    Algorithms Added
    ML-KEM, ML-DSA +3 more
    Complexity
    LOW
    Downtime (est.)
    30-60 minutes per HSM (planning assumption, not a Crypto4A figure)
    FIPS certificate
    Certificate 5497 (QASM Cryptographic Module) lists ML-KEM, ML-DSA, SLH-DSA and LMS but does not name QxHSM.
Note: Recertification time varies by module and queue; the CMVP Modules in Process list shows where each submission is. Until a certificate listing the PQC algorithms is issued, the firmware may run PQC algorithms, but the module certificate does not cover them.

What the lab tests

A PQC-capable HSM is checked in four separate places, and the entry in the FIPS certificate column above speaks only to the module certificate. CAVP is NIST's algorithm validation program (its tests are specified in ACVP documents). CMVP is NIST's cryptographic module validation program; a module's certificate lists its approved algorithms, and the Security Policy published with it lists its services. A CAST is a cryptographic algorithm self-test that a validated module runs on its own algorithms, and a PCT is a pairwise consistency test on a generated key pair. A CSTL is an accredited testing laboratory. In the quotations, IUT means implementation under test, OTS means one-time signature, and FS means full submission. Every quotation below is verbatim from the document named after it, with footnote and reference-number markers left out.

and are stateful hash-based signature schemes — each leaf in the Merkle tree can only be used to sign once. Reusing a leaf completely compromises the signing key.

Critical: State Persistence Requirement

For every signing request, the HSM must write the updated state counter to NVRAM before the signature leaves the module. A power failure around this write can result in state loss, causing the same leaf to be used twice. NIST SP 800-208 §8.1 requires that LMS/XMSS key and signature generation “shall only be validated for use within hardware cryptographic modules” at FIPS 140-2 or FIPS 140-3 Level 3 or higher physical security (see also FIPS 140-3 IG C.N, Requirements for SP 800-208 Schemes). HSMs meet it with atomic NVRAM writes, write-ahead logging, and pre-reservation of signature indices.

NVRAM State Management

  • • Atomic state counter update after each signature
  • • Write-ahead logging prevents partial state corruption
  • • Pre-reservation of signature indices (batch allocation)
  • • Hardware watchdog timer detects stalled writes
  • • Backup state to secondary NVRAM partition

CNSA 2.0 Requirements

  • • LMS or XMSS (single-tree only; HSS and XMSS^MT are not allowed in NSS) preferred to start firmware signing now; validated ML-DSA-87 is also approved
  • • New NSS acquisitions must be CNSA 2.0-compliant from 1 Jan 2027
  • • Equipment that cannot support CNSA 2.0 phased out by 31 Dec 2030 (exceptions possible)
  • • CNSA 2.0 mandated for National Security Systems by 31 Dec 2031
  • • NSM-10 goal: quantum-resistant NSS by 2035
  • • Tree height H=20 provides ~1M signatures per key
  • • HSS (multi-tree) extends the signature count, for commercial (non-NSS) use only

Power failure recovery: the standard fixes the order of operations, not the recovery procedure. How a particular product behaves when it finds incomplete state after a power loss, for example whether it refuses to sign with that key until an operator checks it, is product behaviour: read its Security Policy and administrator guide. NIST SP 800-208 section 8.1 says:

“In order to prevent the possible reuse of an OTS key, when the cryptographic module accepts a request to sign a message, the cryptographic module shall increment the leaf index of the private key (q in LMS, idx in XMSS, idx_sig in XMSSMT) and shall store the incremented leaf index value in nonvolatile storage before exporting a signature value or accepting another request to sign a message.” (NIST SP 800-208, section 8.1, p. 28)

FIPS 140-3 IG C.N Resolution 12 has the lab check it: “the tester shall confirm that the state information for the key (at minimum the leaf index value) is updated in the non-volatile memory before exporting a signature value or accepting a request to sign another message.”

This section examines hardware maintenance policies and procedures for operators of cryptographic hardware. It looks at maintenance facilities and firmware updates, key and media sanitisation, and validation status and migration planning.

Maintenance facilities and firmware updates

Key and media sanitisation

The next part turns to key and media sanitisation.

  • NIST SP 800-88 Rev. 2 recommends zeroisation, such as overwriting with all zeros, all ones, or random data, for target cryptographic keys, and notes that ISO/IEC 27040 requires all copies of those keys to be sanitisable.

    Source: Guidelines for Media Sanitization (Rev. 2), 2025-09, Section 3.2, PDF p. 23

  • According to NIST SP 800-88 Rev. 2, when information storage media is repurposed or reaches end of life, the organisation executes its sanitisation decision, and disposal without sanitisation should be considered only if disclosure would cause no mission impact or harm to individuals.

    Source: Guidelines for Media Sanitization (Rev. 2), 2025-09, Section 4.3.1 Information Decisions in the System Life Cycle, PDF p. 30

Validation status and migration planning

The final part turns to validation status and migration planning.

The key takeaway

Hardware maintenance standards govern trusted facilities, authenticated firmware updates, key and media sanitisation, and how cryptographic changes affect validation status and agreements.

✓ Reviewed by PQC Today

Ready to explore HSM operations?

Step through PKCS#11 PQC operations, compare vendors, and plan firmware migrations in the interactive workshop.

Check off all sections and mark this reading done.

Try it

workshop steps that practise this lesson
  • Step 1: PKCS#11 Simulator

    Step through 8 PKCS#11 PQC operations with on-prem vs cloud comparison.
  • Step 2: Vendor Comparison

    Compare 9 HSM vendors by PQC maturity, algorithms, and FIPS validation.
  • Step 3: Migration Planner

    Plan HSM firmware migration from classical to PQC with dual-partition strategy.

Your comments on HSM & PQC Operations(0)

Stored on this device only. A comment never counts toward your progress.

    Related resources

    Production Tool Capabilities & Verification ChecklistHSM Administrators & Cryptographic Custodians

    Capabilities to require in your production tools:

    • OASIS PKCS#11 v3.2 interface supporting `C_EncapsulateKey`, `C_DecapsulateKey`, `CKM_ML_KEM`, `CKM_ML_DSA`, `CKM_SLH_DSA`, and `CKA_PARAMETER_SET`.
    • FIPS 140-3 Level 3 physical security, with documented non-invasive (side-channel) attack mitigations, for firmware executing PQC primitives inside the cryptographic boundary.
    • Partition-level mechanism policy enforcement blocking deprecated classical algorithms (`CKM_RSA_PKCS`, `<2048-bit RSA`).

    How to evaluate in your environment

    Query HSM partition capabilities (`pkcs11-tool --list-mechanisms`) and execute `C_EncapsulateKey` / `C_Sign` KAT vectors on a staging HSM slot.

    Production evidence to collect

    HSM firmware version and CMVP certificate reference, `pkcs11-tool` mechanism list, and signed HSM audit log.

    Completing this Hub module and its browser-based sample exercises teaches the technical and governance decision criteria for your role; it does not test, validate, or certify your deployed production systems.

    Record evidence for your environment

    Identify the tested build and configuration. Use reference IDs for observations. For a proposed exclusion, record the system boundary or rule and why it excludes this build.

    OASIS PKCS#11 v3.2 interface supporting `C_EncapsulateKey`, `C_DecapsulateKey`, `CKM_ML_KEM`, `CKM_ML_DSA`, `CKM_SLH_DSA`, and `CKA_PARAMETER_SET`.
    FIPS 140-3 Level 3 physical security, with documented non-invasive (side-channel) attack mitigations, for firmware executing PQC primitives inside the cryptographic boundary.
    Partition-level mechanism policy enforcement blocking deprecated classical algorithms (`CKM_RSA_PKCS`, `<2048-bit RSA`).

    Evidence missing. 0 of 3 requirements have a reference or scope rationale.

    Learning module content can be inaccurate. Please double-check its information. Report inaccuracies in PQC Today GitHub Discussions.