Learn · Practitioner
KMS & PQC Key Management
Master PQC key management patterns: envelope encryption with ML-KEM, hybrid key wrapping, and cross-provider KMS strategies.
For you, every role: what this means
- Security Architect
- Design the three-level key hierarchy (root KEK, zone KEK, DEK), compare ML-KEM envelope encryption with RSA-OAEP wrapping, explore the X25519 plus ML-KEM-768 combiner per provider, and write an AWS KMS policy that restricts key specs and key usage; no policy condition can require post-quantum TLS, which is a client setting.
- Researcher / Academic
- The envelope-encryption comparison and the hybrid combiner step are the primitives, and the KMIP v3.0 step maps PQC key types across providers.
- IT Ops / DevOps
- Plan PQC key rotation with provider-specific strategies and compliance windows in Step 4, and the KMIP operations in Step 5: the KMS is where every downstream key lives.
- Curious Explorer
- A key-management system holds the keys that protect everything else; the module shows how a data key is wrapped and rotated, and what changes when the wrapping key goes post-quantum.
Post-quantum cryptography fundamentally changes how organizations manage keys. establishes that is a Key Encapsulation Mechanism only — it cannot sign. Similarly, is for signatures only — it cannot encapsulate. This strict algorithm separation replaces the dual-use nature of , which could both encrypt and sign.
“A KEM can be combined with a symmetric-key encryption scheme to yield very efficient public-key encryption. This is sometimes referred to as the KEM-DEM paradigm for PKE”
— NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms, Sec. 5.2.1
- • RSA-OAEP: direct encryption of data/keys
- • RSA-PSS: digital signatures
- • One RSA key pair can do both, but should not (NIST SP 800-57)
- • AWS KMS permits only one usage per key
- • ML-KEM: key encapsulation only (KEM)
- • ML-DSA: digital signatures only
- • Separate key pairs are mandatory, not just good practice
- • Inventory grows where classical keys were dual-use
Measure a public key buffer
The sample API expects the complete RSA public key as DER SubjectPublicKeyInfo (SPKI). Predict whether a 256 B buffer fits it, then generate a key and measure both encodings.
| Algorithm | Public Key | Private Key | Sig / CT | Security |
|---|---|---|---|---|
| RSA-2048 | 256 B | 1,192 B | 256 B | About 112-bit classical |
| RSA-3072 | 384 B | 1,766 B | 384 B | About 128-bit classical |
| RSA-4096 | 512 B | 2,348 B | 512 B | Between 128-bit and 192-bit classical |
| ECDSA P-256 | 65 B | 32 B | 64 B | About 128-bit classical |
| ML-KEM-512 | 800 B | 1,632 B | 768 B | NIST Level 1 |
| ML-KEM-768 | 1,184 B | 2,400 B | 1,088 B | NIST Level 3 |
| ML-KEM-1024 | 1,568 B | 3,168 B | 1,568 B | NIST Level 5 |
| ML-DSA-44 | 1,312 B | 2,560 B | 2,420 B | NIST Level 2 |
| ML-DSA-65 | 1,952 B | 4,032 B | 3,309 B | NIST Level 3 |
| ML-DSA-87 | 2,592 B | 4,896 B | 4,627 B | NIST Level 5 |
PQC public keys are about 3× (ML-KEM-512) to 10× (ML-DSA-87) the size of the RSA-2048 modulus width, and up to about 40× the size of an uncompressed ECDSA P-256 public point. Budget certificate and network sizes using the actual encodings and container overhead. The Security column uses two scales: classical rows show approximate bit strength (NIST SP 800-57 Part 1 Rev. 5, Table 2), and PQC rows show NIST security categories. SP 800-57 has no row for RSA-4096, which falls between its 128-bit and 192-bit entries. The RSA private-key sizes are typical DER lengths and vary by a few bytes between keys.
The key takeaway
Unlike dual-use RSA, ML-KEM only encapsulates and ML-DSA only signs, mandating separate key pairs and larger storage and network budgets for PQC key hierarchies.
✓ Reviewed by PQC Today
Because produces a random shared secret (not a direct encryption), uses a different pattern from RSA-OAEP, which wraps the DEK in one step. In this module's design, ML-KEM encapsulates → derives a wrapping key via HKDF → wraps the DEK with AES-KW. The shared secret key from ML-KEM does not itself require further key derivation (NIST PQC FAQ); the HKDF step binds the wrapping key to this protocol and version.
Generate RSA-2048 key pair. Public key is used by clients to wrap DEKs.
Generate ML-KEM-768 key pair. Public encapsulation key is distributed to clients.
Client uses RSA-OAEP to directly encrypt the 32 B DEK with the KEK public key. One step.
Client runs ML-KEM.Encaps(ek) → produces ciphertext (ct) and shared secret (ss). Two outputs from one operation.
Not needed — RSA-OAEP directly encrypts the DEK. The decrypted output IS the DEK.
The shared secret key from ML-KEM Encaps does not require further key derivation; this demo runs HKDF-SHA-256(shared_secret, salt="kms-envelope-salt-v1", info="kms-envelope-v1") → 256-bit wrapping key to bind it to this protocol and version.
(DEK is already wrapped in step 2 via RSA-OAEP)
Use AES-256-KW (RFC 3394) to wrap the 32 B DEK with the derived wrapping key. Store the KEM ciphertext alongside the wrapped DEK.
Server uses RSA-OAEP private key to decrypt the ciphertext → recovers the 32 B DEK directly.
Server runs ML-KEM.Decaps(dk, ct) → shared secret → HKDF → wrapping key → AES-KW unwrap → DEK. Multi-step but all happens server-side.
The key takeaway
Unlike single-step RSA-OAEP wrapping, ML-KEM envelope encryption pairs key encapsulation with HKDF-SHA-256 key derivation and AES-256-KW to wrap the DEK.
✓ Reviewed by PQC Today
recommends hybrid combiners that derive a single key from both a classical and PQC shared secret: KDF(classical_shared || pqc_shared). With a sound combiner, the derived key stays secret as long as either shared secret does.
Do not confuse these key-wrap combiners with the TLS hybrid groups. X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024 (RFC 10024) protect a live connection: the two secrets are concatenated and fed to the TLS 1.3 key schedule. The combiners below wrap a key that is stored, so this module defines its own HKDF call over the two secrets. They are different constructions even when they use the same two algorithms, and a TLS group name does not describe how a KMS wraps its keys.
KMS key wrap, general purpose — this module's own combiner, one of the choices SP 800-227 Section 4.6 allows. The TLS group X25519MLKEM768 (RFC 10024) is a different construction: it concatenates the same two secrets, ML-KEM first, and feeds them to the TLS 1.3 key schedule, not to this HKDF call
FIPS-oriented — P-256 is a FIPS-approved curve, and RFC 10024 puts its secret first in SecP256r1MLKEM768. Whether a hybrid counts as FIPS-approved depends on the module’s validated algorithms and the current CMVP implementation guidance; check both and the module’s Security Policy
High-security environments, NIST Level 5 — the pairing standardised as the TLS group SecP384r1MLKEM1024 (RFC 10024) and registered as MLKEM1024-P384 in the HPKE post-quantum draft. RFC 10024 defines no X25519 + ML-KEM-1024 group
Google Cloud KMS — X-Wing hybrid KEM (draft-connolly-cfrg-xwing-kem-11)
The key takeaway
Hybrid key-wrap combiners feed classical and PQC shared secrets into a KDF to protect stored keys and differ from RFC 10024 TLS hybrid groups.
✓ Reviewed by PQC Today
Cloud providers and on-premises key management solutions are at different stages of PQC adoption. Understanding each provider's capabilities is critical for multi-cloud strategies. The list is not exhaustive: Entrust nShield and KeyControl and IBM key-management products are not covered by this module's sources.
A post-quantum algorithm counts as FIPS-validated only if the module's own FIPS 140-3 validation covers it. The CMVP implementation guidance for FIPS 140-3 says a module's ML-KEM shall show compliance with FIPS 203 and SP 800-227, and treats a hybrid scheme as an approved ML-KEM plus one or more other algorithms combined through an approved key combiner (SP 800-227 Section 4.6.2). Whether a hybrid counts as FIPS-approved depends on the module's validated algorithms and the current guidance, so check both and the Security Policy of the module that runs your keys. The AWS KMS HSM certificate (CMVP #4884) lists no ML-DSA or ML-KEM algorithm, and a key service's FIPS level does not carry over to a newer key type by implication.
// AWS KMS — ML-DSA signing aws kms create-key \ --key-spec ML_DSA_65 \ --key-usage SIGN_VERIFY aws kms sign \ --key-id alias/my-pqc-key \ --signing-algorithm ML_DSA_SHAKE_256 \ --message fileb://data.bin \ --message-type RAW // AWS KMS — ML-KEM key establishment (a partner encapsulates to the public key) aws kms create-key \ --key-spec ML_KEM_768 \ --key-usage ENCAPSULATE_DECAPSULATE aws kms get-public-key --key-id alias/my-kem-key // Decapsulate returns the 32 B shared secret in plaintext to the caller aws kms decapsulate \ --key-id alias/my-kem-key \ --encapsulation-algorithm ML_KEM \ --shared-secret-ciphertext-blob fileb://ct.bin
AWS KMS supports hybrid post-quantum TLS that combines ECDH with ML-KEM on its service endpoints. AWS lists hybrid post-quantum key exchange as launched on FIPS and non-FIPS endpoints for AWS KMS, AWS Payment Cryptography and the AWS CloudHSM control plane. AWS pages differ on the edges, so check the endpoint and Region you use: the AWS KMS hybrid post-quantum TLS page says all endpoints including FIPS 140-3 validated endpoints in the Regions where AWS KMS is available, the AWS PQ readiness page lists FIPS and non-FIPS endpoints in commercial and US GovCloud Regions as launched, and the Infrastructure security in AWS KMS page says AWS KMS supports hybrid post-quantum TLS in all Regions except the China Regions and does not support it on AWS GovCloud (US) FIPS endpoints. Built on AWS-LC, an open-source library whose FIPS module has its own validation (CMVP #5314, Level 1), separate from the KMS HSM certificate.
Key import: Import uses an RSA wrapping key (RSA_2048, RSA_3072 or RSA_4096; an SM2 wrapping key is also offered in the China Regions), so the wrap is not quantum-safe. ML-KEM keys can establish a secret but cannot receive imported key material.
Rotation: Automatic rotation applies to symmetric encryption KMS keys with KMS-generated key material only (yearly by default, with a custom rotation period allowed, plus on-demand rotation). ML-DSA and ML-KEM keys are not rotated automatically: create a new key and move the alias to it.
# Google Cloud KMS — ML-KEM key (SOFTWARE protection level) gcloud kms keys create my-pqc-kem-key \ --keyring=my-ring \ --location=global \ --purpose=key-encapsulation \ --default-algorithm=ml-kem-768 # X-Wing hybrid KEM (X25519 + ML-KEM-768) gcloud kms keys create my-xwing-key \ --keyring=my-ring \ --location=global \ --purpose=key-encapsulation \ --default-algorithm=kem-xwing # Encapsulate on the client with the public key (e.g. Go crypto/mlkem), # then let Cloud KMS decapsulate with the private key: gcloud kms decapsulate --version=1 --key=my-pqc-kem-key \ --keyring=my-ring --location=global \ --ciphertext-file=ct.bin --shared-secret-file=ss.bin # Quantum-safe key import job (Preview, SOFTWARE protection level). # The client wraps the key with HPKE and uploads enc || ciphertext. gcloud kms import-jobs create my-import-job \ --location=global \ --keyring=my-ring \ --import-method=hpke-kem-xwing-hkdf-sha256-aes-256-gcm \ --protection-level=software
Signing: GA since 16 Jul 2026. Key encapsulation: Preview in the Cloud KMS release notes (since 23 Sep 2025), GA in the 28 Jul 2026 blog post. Quantum-safe key import: Preview since 6 Aug 2026.
Supports ML-KEM-768, ML-KEM-1024, X-Wing hybrid KEM (X25519+ML-KEM-768), ML-DSA-44/65/87, and SLH-DSA-SHA2-128s. Signing is generally available (release notes, 16 Jul 2026). Google Cloud KMS release notes list the ML-KEM and X-Wing key encapsulation algorithms as Preview since 23 September 2025. Google’s 28 July 2026 blog post announces general availability of ML-KEM key encapsulation, so the sources differ: check the current launch stage. X-Wing (draft-connolly-cfrg-xwing-kem) is a community/IETF-CFRG design by Barbosa, Connolly, Schwabe, Westerbaan et al. — not a Google design, and distinct from the TLS group X25519MLKEM768.
Key import: Import jobs offer RSA-based methods (RSAES-OAEP with SHA-1 plus AES-KWP, or with SHA-256 with or without AES-KWP) and, in Preview, quantum-safe HPKE methods. Only the HPKE methods protect the key in transit against a quantum attacker, and they cover software-protected keys only.
Rotation: Scheduled rotation creates new key versions in Cloud KMS. Imported keys have automatic rotation disabled by default, and a key created import-only must be rotated manually.
// Azure Key Vault — current (RSA; no post-quantum key type) az keyvault key create \ --vault-name my-vault \ --name my-key \ --kty RSA \ --size 3072 // BYOK: create the key exchange key (RSA-HSM, import operation only) az keyvault key create \ --vault-name my-vault \ --name KEKforBYOK \ --kty RSA-HSM \ --size 3072 \ --ops import // then import the .byok transfer blob built by your HSM vendor's BYOK tool az keyvault key import \ --vault-name my-vault \ --name imported-key \ --byok-file KeyTransferPackage-imported-key.byok // PQC: not available as a Key Vault key type // Microsoft roadmap aims for early adoption of quantum-safe capabilities by 2029 and complete transition of services and products by 2033 // SymCrypt library supports ML-KEM/ML-DSA internally
PQC APIs available on Windows Server 2025, Windows 11, and .NET 10 via SymCrypt. Microsoft targets early quantum-safe adoption by 2029 and complete transition by 2033 (a Microsoft-wide goal; no Key Vault-specific date is sourced here). Symmetric oct-HSM 256-bit AES keys are available in Managed HSM and are quantum-resistant for symmetric operations.
Key import: BYOK uses an RSA-HSM key exchange key that allows only the import operation (2048, 3072 or 4096 bits for Key Vault), and a Key Vault transfer blob made with CKM_RSA_AES_KEY_WRAP (RSA-OAEP with SHA-1 plus AES key wrap with padding). The pages cited here describe no post-quantum option.
Rotation: Key Vault key auto-rotation applies to the key types the service offers (RSA and EC); it has no post-quantum key type to rotate.
# OpenBao 2.7.2; authenticated bao CLI and an existing Transit mount.
# Use a fresh fictional key name. A new signing key does not convert an encryption key.
set -eu
TRANSIT_MOUNT="${TRANSIT_MOUNT:-transit}"
SIGNING_KEY="${SIGNING_KEY:-sample-mldsa65}"
bao write "$TRANSIT_MOUNT/keys/$SIGNING_KEY" type=mldsa-65 >/dev/null
input=$(printf %s 'fictional release manifest' | base64 | tr -d '\n')
signature=$(bao write -field=signature "$TRANSIT_MOUNT/sign/$SIGNING_KEY" input="$input" prehashed=false)
valid=$(bao write -field=valid "$TRANSIT_MOUNT/verify/$SIGNING_KEY" input="$input" signature="$signature" prehashed=false)
test "$valid" = true
printf 'Original message valid: %s\n' "$valid"
changed_input=$(printf %s 'changed fictional release manifest' | base64 | tr -d '\n')
valid=$(bao write -field=valid "$TRANSIT_MOUNT/verify/$SIGNING_KEY" input="$changed_input" signature="$signature" prehashed=false)
test "$valid" = false
printf 'Changed message valid: %s\n' "$valid"
# Rotation creates another version of this ML-DSA key, retaining old verification keys.
previous=$(bao read -field=latest_version "$TRANSIT_MOUNT/keys/$SIGNING_KEY")
bao write -f "$TRANSIT_MOUNT/keys/$SIGNING_KEY/rotate" >/dev/null
latest=$(bao read -field=latest_version "$TRANSIT_MOUNT/keys/$SIGNING_KEY")
test "$latest" -eq "$((previous + 1))"
new_signature=$(bao write -field=signature "$TRANSIT_MOUNT/sign/$SIGNING_KEY" input="$input" prehashed=false)
test "$(bao write -field=valid "$TRANSIT_MOUNT/verify/$SIGNING_KEY" input="$input" signature="$new_signature" prehashed=false)" = true
test "$(bao write -field=valid "$TRANSIT_MOUNT/verify/$SIGNING_KEY" input="$input" signature="$signature" prehashed=false)" = true
printf 'New version: %s; new and retained signatures verified\n' "$latest"
# Retain the returned envelope: its version identifies the verification key.
# Raw ML-DSA-65 signatures are 3,309 B; the envelope and base64 add overhead.
set -eu
TRANSIT_MOUNT="${TRANSIT_MOUNT:-transit}"
# AES-GCM encrypts a fictional 32-byte data key. ML-DSA cannot encrypt it.
bao write "$TRANSIT_MOUNT/keys/sample-provider-kek" type=aes256-gcm96 >/dev/null
plaintext=$(printf %s '0123456789abcdef0123456789abcdef' | base64 | tr -d '\n')
ciphertext=$(bao write -field=ciphertext "$TRANSIT_MOUNT/encrypt/sample-provider-kek" plaintext="$plaintext")
recovered=$(bao write -field=plaintext "$TRANSIT_MOUNT/decrypt/sample-provider-kek" ciphertext="$ciphertext")
test "$recovered" = "$plaintext"
printf 'Fictional data key encrypted and recovered exactly\n'
# Retain the complete versioned ciphertext envelope; this is not RSA key transport.The copied examples target OpenBao 2.7.2 and its native Transit API: https://openbao.org/docs/api/secret/transit/. Use type=mldsa-65 for this signing example; no parameter_set field is used. The lifecycle examples test signing, tamper rejection, AES-GCM data-key recovery, rotation and deletion. They do not demonstrate a hybrid signature, a KEM, KMIP, or the transport/seal configuration. Evaluate those separate capabilities with the production tools and configuration you intend to use.
Key import: Externally generated key import uses the documented RSA-4096 wrapping-key path. It is separate from the native key-generation example and does not establish post-quantum key transport.
Rotation: Transit supports versioned keys and configurable rotation periods. This sample explicitly rotates an ML-DSA key and verifies signatures from both versions; a scheduled rotation policy requires its own configuration and test.
# Thales CipherTrust — BYOK to AWS KMS: the steps, not a REST call # The REST request shapes are not reproduced here: they are not in the # sources this module cites. See the CipherTrust Manager REST reference # for your version. # # 1. AWS KMS: create a KMS key with no key material, then GetParametersForImport # -> RSA wrapping public key (RSA_3072 or RSA_4096) + import token # 2. External key manager / Luna HSM: wrap the AES-256 key under that public key # with RSAES_OAEP_SHA_256 (a classical wrap) # 3. AWS KMS: ImportKeyMaterial with the wrapped key and the import token # # Hybrid post-quantum TLS protects the API calls to AWS KMS. # It does not make the RSA wrap in step 2 quantum-safe.
Enterprise multi-cloud key management that integrates with Luna HSMs (firmware 7.9+) for ML-KEM and ML-DSA. Post-quantum curves are configurable in TLS groups on the Web interface from v2.20.0, and the v2.21.0 notes label the Web interface setting a technical preview. ML-KEM on the SSH interface is a technical preview from v2.21.0, and v2.21.0 also lists post-quantum TLS channels between CCKM and Google Chrome as technical previews. CipherTrust Manager and CCKM v2.22.0 enable quantum-resilient ciphers for Google Workspace CSE connections between Chrome and CipherTrust. This module does not state a later ML-KEM status because no later release note is held in its sources. KMIP and NAE protocol support for legacy integration.
Key import: A BYOK upload to AWS KMS has to follow the AWS import path, which wraps the key under an RSA wrapping key. The wrap is classical; a quantum-safe transport only protects the API calls that carry it.
Rotation: CCKM v2.21 automates rotation of AWS KMS keys from its console, on schedules from monthly to yearly.
# Fortanix DSM — API request shapes are not reproduced here # They are not in the sources this module cites. See the Fortanix DSM # API documentation for the key types and operations of your version. # # PQC Central is a separate Fortanix Key Insight feature for cryptographic # discovery and risk assessment; it is not part of DSM and does not provide # DSM's algorithm support.
The product catalogue records DSM’s own Algorithm Support documentation as listing native support for LMS, XMSS, ML-KEM-512/768/1024 and ML-DSA-44/65/87. Post-quantum algorithms are not in the scope of its FIPS 140-2 certificate. PQC Central is a Key Insight discovery feature, not part of DSM.
Key import: Not covered by the sources this module cites.
Rotation: Rotation scope per key type is not stated in the sources this module cites.
Key rotation with PQC algorithms introduces significant bandwidth and storage overhead. Enterprises must plan phased rotation aligned with compliance deadlines from and .
At 300 TLS certificates, comparing the 256 B RSA-2048 modulus with the 2,017 raw bytes of an ML-DSA-65 public key and an uncompressed P-256 point gives a difference of about 528 KB. Measure the complete encoded certificate chains, including signatures, to budget rotation bandwidth.
NIST SP 800-57 Part 1 Revision 6 (Initial Public Draft, December 2025, so it may still change) adds ML-KEM-aware cryptoperiods: it suggests no more than one or two years for a public static encapsulation key and recommends no more than two years for a private static decapsulation key, which may need to outlive the encapsulation key because earlier ciphertexts still have to be decapsulated. Revision 5 remains the final publication.
Catalog all cryptographic assets, identify quantum-vulnerable keys, establish baseline metrics.
Issue hybrid certificates (classical + PQC) for TLS, upgrade HSM firmware, configure dual-key rotation policies in KMS.
Complete the in-scope migration using approved profiles. CNSA 2.0 FAQ version 2.2 mandates its algorithms for NSS by 31 December 2031 unless otherwise noted; NIST IR 8547 (final, October 2026) sets a separate transition horizon for systems that follow NIST standards: deprecated after 2030, disallowed after 2035.
All new National Security Systems acquisitions must be CNSA 2.0 compliant by January 1, 2027. ML-KEM-1024 and ML-DSA-87 required.
NIST IR 8547 (final, October 2026) covers both signatures and key establishment: the quantum-vulnerable schemes it lists (RSA, ECDSA, EdDSA, finite-field and elliptic-curve DH and MQV) are deprecated after 2030 and disallowed under NIST standards and guidelines after 2035. Separately, as NIST IR 8547 describes them, Executive Order 14412 and OMB Memorandum M-26-15 require the Government’s most sensitive systems to adopt PQC for key establishment by 31 December 2030 and for digital signatures by 31 December 2031.
European agencies strongly recommend Hybrid implementations (Classical + PQC) during the transition. ANSSI recommends hybrid post-quantum mitigation especially for products offering long-lasting protection of information beyond 2030.
PCI DSS v4.0.1 is the only active version since v4.0 retired on 31 December 2024; the public PCI SSC pages state no PQC algorithm, parameter set or deadline.
ICT risk management framework including cryptographic risk assessment for financial entities.
The key takeaway
PQC rotation adds bandwidth and storage overhead, moving through inventory, hybrid, and full PQC phases aligned with CNSA 2.0 and NIST IR 8547.
✓ Reviewed by PQC Today
Multi-cloud PQC key management requires a unified architecture that abstracts provider-specific APIs while maintaining centralized policy control. (Key Management Interoperability Protocol) provides a vendor-neutral interface for cross-provider key operations.
KMIP 3.0 (Committee Specification Draft 02, 7 May 2026) adds the FIPS 203, 204 and 205 algorithms (ML-KEM, ML-DSA, SLH-DSA) and includes Encapsulate and Decapsulate operations; KMIP 2.1 is the OASIS Standard. Use KMIP as the abstraction layer for cross-provider key operations: Create Key Pair, Get (with a wrapping specification), Re-key Key Pair, Revoke and Destroy. KMIP has no Wrap, Unwrap or Rotate operation. Re-key replaces a symmetric key; Re-key Key Pair replaces a key pair, which is what an ML-KEM or ML-DSA key needs. A key moves Pre-Active, Active, Deactivated, Destroyed (Compromised is a further state), and Destroy applies only to Pre-Active or Deactivated objects, so an Active key is first deactivated with Revoke.
In this module's design, PQC key backup uses quantum-safe wrapping for the backup envelope: ML-KEM wraps the backup keys, with M-of-N key splitting for disaster recovery, and backup HSMs run PQC-capable firmware. For HSMs that cannot yet be upgraded, the Applied Quantum framework (v2.1) suggests PQC key-wrapping around classical HSM operations as interim protection.
Design the KMS abstraction layer to support algorithm swaps without application changes. Tag keys with algorithm metadata, version them, and use feature flags to route traffic between classical and PQC paths.
Automatic rotation covers symmetric encryption KMS keys only (yearly by default, custom period allowed, plus on-demand rotation). ML-DSA and ML-KEM keys are rotated by creating a new key and moving the alias
ML-DSA signing GA; ML-KEM key specs since 26 Oct 2026 (not in the China, Middle East (UAE) and Middle East (Bahrain) Regions); hybrid TLS for API transit
Key versioning with scheduled rotation; imported keys have automatic rotation disabled by default
ML-DSA and SLH-DSA signing GA (16 Jul 2026); ML-KEM-768/1024 and X-Wing offered; software protection level only (launch stage: Google's 28 Jul 2026 post announces general availability of ML-KEM key encapsulation and does not name X-Wing; Google's release notes list the KEMs, X-Wing included, as Preview from 23 Sep 2025; checked 30 Oct 2026)
Key Vault auto-rotation with Event Grid triggers
ML-KEM integration via SymCrypt; Microsoft-wide goal of early quantum-safe adoption by 2029 (no Key Vault-specific date sourced)
Design key hierarchies, visualize envelope encryption, and plan PQC rotation strategies.
Every cloud PQC conversation eventually reduces to one question: who holds the root of trust, and can they prove what happened to it? The algorithms are the easy part — the hard part is that the answer differs per service, per tenant model, and per region.
Provider-managed
Root of trust
Cloud provider
The provider migrates on its own schedule. You inherit the timeline and usually cannot audit the key material directly.
BYOK
Root of trust
You generate, provider stores
You control generation and keep the original key material, but the import path is whatever the service supports: AWS KMS documents RSA wrapping key specs for import and does not import ML-KEM or ML-DSA key material. The provider still controls the HSM boundary and its FIPS posture.
HYOK / external key store
Root of trust
You hold the external key-encryption key (KEK)
You control where that KEK lives and how it migrates, and you carry the operational burden. External custody does not take the provider out of the data path: a plaintext data key still reaches whoever encrypts your data, your application or the cloud service, and some AWS services briefly cache data keys, so revoking the external key does not stop every operation at once. In AWS KMS an external key store supports only symmetric encryption keys and the service adds its own encryption layer under yours, so it offers no ML-KEM path. Other services differ in import, wrapping and caching, so check each service’s boundary before assuming a PQC option.
Exchanging keys with a third-party HSM or KMS
Moving a key between a partner HSM or key manager and a cloud KMS is a different problem from encrypting data with a KMS. This section sets out what AWS KMS, Google Cloud KMS and Azure Key Vault document for key import and key establishment as of November 2026, whether each path is quantum-safe, and where the key ends up. Workshop Step 7, “Cloud KMS Key Exchange,” simulates these flows in the browser; no cloud service is called.
Headline, November 2026. The AWS and Azure pages cited here describe RSA-based key import only (AWS adds an SM2 wrapping key in the China Regions): for AWS KMS and Azure Key Vault there is no quantum-safe import path in these pages, and they describe no preview of one. Google Cloud KMS documents a quantum-safe import built on HPKE, in Preview, for software-protected keys. A quantum-safe transport protects the API call that carries a wrapped key; it does not change how the key is wrapped.
AWS KMS
AWS KMS offers ML-DSA signing keys (ML_DSA_44, ML_DSA_65, ML_DSA_87) and ML-KEM key-establishment keys (ML_KEM_512, ML_KEM_768, ML_KEM_1024). AWS added ML-KEM keys to AWS KMS on 26 October 2026; they are not available in the China, Middle East (UAE) and Middle East (Bahrain) Regions. Neither key family can receive imported key material.
| Path | Mechanism | Quantum-safe? | Where the key ends up |
|---|---|---|---|
| Import (BYOK) into AWS KMS | GetParametersForImport returns an RSA wrapping public key and an import token; ImportKeyMaterial accepts the wrapped key. AWS KMS imports key material under an RSA wrapping key (RSA_2048, RSA_3072 or RSA_4096), or an SM2 wrapping key in the China Regions, and cannot import key material into ML-DSA or ML-KEM KMS keys. A 256-bit AES or HMAC key is wrapped with RSAES_OAEP_SHA_256 or RSAES_OAEP_SHA_1. RSA private key material requires RSA_AES_KEY_WRAP_SHA_256 or RSA_AES_KEY_WRAP_SHA_1, and ECC private keys may use either family. RSAES_PKCS1_V1_5 has not been supported since 10 October 2023. | No. The wrap is RSA. Hybrid post-quantum TLS protects the API call that carries it, not the wrap. | Inside AWS KMS, in an imported key. |
| Export out of AWS KMS | A KMS key is not exported. Only data keys and data key pairs come out. AWS KMS GenerateDataKeyPair can return ML-KEM data key pairs, with the private key in seed format, encrypted under a symmetric KMS key. The response also carries a plaintext copy of the private key unless a Nitro enclave Recipient is used, and a Recipient is limited to the RSAES_OAEP_SHA_256 algorithm. | Encrypting under a symmetric AES-256 KMS key: yes. Delivery to a Nitro enclave Recipient: no, it is RSA. | The caller’s memory, outside any HSM. |
| ML-KEM key establishment | The partner gets the public key with GetPublicKey and encapsulates with its own library; AWS KMS Decapsulate recovers the secret. AWS KMS Encapsulate works only with the public key of a KMS ML-KEM key. Encapsulating to a partner's HSM key therefore happens in the caller's own library. AWS KMS Decapsulate returns the 32 B ML-KEM shared secret in plaintext to the calling application. | Yes for the key establishment (FIPS 203). The secret then lives outside the HSM, so any wrapping or key derivation done with it is the application’s job. | The application’s memory, in plaintext. It is not a KMS key, and Decapsulate has no Recipient option to deliver it to an enclave. |
| Hybrid, combined in your application | Combine an ECDH secret (the DeriveSharedSecret operation) with the Decapsulate secret using an approved key combiner or key derivation (SP 800-56C, SP 800-227 Section 4.6.2), in your own code. The AWS KMS ML-KEM key specs are ML_KEM_512, ML_KEM_768 and ML_KEM_1024; none of them is a hybrid. | The combined secret is quantum-safe if the ML-KEM part is, but the combiner runs outside the HSM. | The application’s memory. |
| RSA key transport | The partner encrypts the key to the public key of a KMS RSA key; Decrypt returns the plaintext to the caller. | No. RSA key transport is quantum-vulnerable. | The caller’s memory. |
An external key store keeps the key in your own HSM (see the HYOK card above); it supports only symmetric encryption keys and offers no ML-KEM path. AWS Payment Cryptography has its own key import and export methods; they are not covered here. AWS KMS supports hybrid post-quantum TLS that combines ECDH with ML-KEM on its service endpoints. AWS lists hybrid post-quantum key exchange as launched on FIPS and non-FIPS endpoints for AWS KMS, AWS Payment Cryptography and the AWS CloudHSM control plane. AWS pages differ on the edges, so check the endpoint and Region you use: the AWS KMS hybrid post-quantum TLS page says all endpoints including FIPS 140-3 validated endpoints in the Regions where AWS KMS is available, the AWS PQ readiness page lists FIPS and non-FIPS endpoints in commercial and US GovCloud Regions as launched, and the Infrastructure security in AWS KMS page says AWS KMS supports hybrid post-quantum TLS in all Regions except the China Regions and does not support it on AWS GovCloud (US) FIPS endpoints.
AWS's post-quantum keys page notes that AWS KMS is closely tracking the IETF post-quantum HPKE draft as a replacement for RSA-based encryption; it describes no import feature built on it.
Google Cloud KMS
Google Cloud KMS key import wraps key material for transfer using RSA-based import methods. The quantum-safe HPKE methods are a separate set of import methods in Preview. The RSA methods use RSAES-OAEP with SHA-1 plus AES-KWP, or with SHA-256 with or without AES-KWP, under a 3072-bit or 4096-bit import-job key.
Google Cloud KMS quantum-safe key import, in Preview, wraps imported key material with HPKE using X-Wing, ML-KEM-768 or ML-KEM-1024 with HKDF-SHA256 and AES-256-GCM. The Cloud KMS release notes date the Preview to 6 August 2026. It is supported for software-backed keys (SOFTWARE protection level) only.
- You create an import job with one of the import methods HPKE_KEM_XWING_HKDF_SHA256_AES_256_GCM, HPKE_KEM_ML_KEM_768_HKDF_SHA256_AES_256_GCM or HPKE_KEM_ML_KEM_1024_HKDF_SHA256_AES_256_GCM. A job expires after three days.
- When the job is ACTIVE you download its public key. On your side, wrapping runs HPKE.Seal() as defined in RFC 9180 and concatenates the encapsulated key and the ciphertext (
enc || ciphertext). Google's Go sample wraps the key with the tink-go library. - The imported key material becomes a new key version on an existing target key.
The launch stage of key encapsulation differs by source. Google Cloud KMS release notes list the ML-KEM and X-Wing key encapsulation algorithms as Preview since 23 September 2025. Google's 28 July 2026 blog post announces general availability of ML-KEM key encapsulation; check the current launch stage before relying on either. Post-quantum signing in Cloud KMS became generally available on 16 July 2026.
Azure Key Vault and Managed HSM
Azure Key Vault BYOK transfers a key wrapped with CKM_RSA_AES_KEY_WRAP under an RSA-HSM key exchange key of 2048, 3072 or 4096 bits. Azure Managed HSM BYOK uses an RSA-HSM key exchange key that has only the import key operation.
The mechanism encrypts an ephemeral AES key with RSA-OAEP (SHA-1) and the target key with AES key wrap with padding, then concatenates the two. The transfer blob is a .byok file whose header names the key exchange key and the CKM_RSA_AES_KEY_WRAP mechanism. The Azure pages cited here describe no post-quantum option.
- Transport is not the wrap. Hybrid post-quantum TLS to a KMS endpoint protects the request. Whether a key moved between two HSMs is quantum-safe depends on the key-wrapping step, which is RSA for AWS KMS and Azure and HPKE for Google's Preview import.
- A plain ML-KEM exchange hands the secret to the application. The application can derive a wrapping key (HKDF) and wrap a key with AES-KW, but the derivation and the wrap happen outside the HSM.
- HPKE is the pattern. Google's import shows what a post-quantum import looks like: the sender runs HPKE Seal to the service's public key, and the service opens it inside its boundary. The Workshop step shows the same flow as a candidate design for AWS and Azure, labelled as not offered by those providers.
Key release to an attested workload
A key service can also decide when a key is used: only after the workload shows what it is running. Two documented examples. Azure Key Vault Secure Key Release (Managed HSM and Premium) releases an HSM-protected, exportable key to an attested trusted execution environment when the Microsoft Azure Attestation claims satisfy a release policy set when the key is created. AWS KMS works with AWS Nitro Enclaves: its key-policy condition keys (kms:RecipientAttestation:ImageSha384 and kms:RecipientAttestation:PCR) make KMS allow operations with a key only if the enclave provides a signed attestation document whose measurements match the policy.
In both cases the key service relies on the attestation and on the hardware behind it; how those attestations work is covered in Confidential Computing. Sources: Microsoft Learn, Secure Key Release and AWS Nitro Enclaves User Guide, cryptographic attestation with AWS KMS (read 8 Nov 2026).
NIST SP 800-210 sets out access-control guidance across IaaS, PaaS and SaaS and is the reference for arguing where a boundary actually sits. It was published in July 2020, predates the PQC standards, and names no post-quantum mechanism — useful for the boundary argument, not for the algorithm one. The Cloud Security Alliance practitioner guide is the post-quantum-aware companion.
Cloud Computing / Data Centers in the Industry Landscape links here rather than to a separate cloud module: the cryptography is already covered by this module, Confidential Computing, Database Encryption and Web Gateway PQC. What was missing was this ownership framing.
The key takeaway
Cloud PQC capabilities depend on who holds the root of trust and each provider's wrapping boundary, not just quantum-safe TLS transport.
✓ Reviewed by PQC Today
This section introduces enterprise key backup and recovery.
Scope of key backup and recovery
NIST SP 800-57 Part 1 Revision 6 defines backup storage as storing copies of key information that is also available in normal operational storage during a key's cryptoperiod.
Source: Recommendation for Key Management: Part 1 – General (Revision 6), 2025-12, Section 7.2.2.1 Backup Storage, PDF p. 129
NIST SP 800-57 Part 1 Revision 6 defines key recovery as retrieving or reconstructing a key from key backups or archives to process cryptographically protected information.
Source: Recommendation for Key Management: Part 1 – General (Revision 6), 2025-12, Section 8.5.2 Key Recovery, PDF p. 147
NIST SP 800-57 Part 1 Revision 6 recommends deciding whether key recovery is required on a case-by-case basis, weighing continuity of operations against the risk of exposing keying material and protected information.
Source: Recommendation for Key Management: Part 1 – General (Revision 6), 2025-12, Section 7.2.2.2 Key Recovery Function, PDF p. 132
NIST SP 800-57 Part 1 Revision 6 states that private signature keys generally shall not be archived and are usually undesirable to back up because of non-repudiation concerns, though backing up a CA's private signature key may be justified in some circumstances.
Source: Recommendation for Key Management: Part 1 – General (Revision 6), 2025-12, Appendix B.2.1 Private Signature Key, PDF p. 167
Access controls, auditing, and multiparty custody
Once an organization decides which keys are eligible for recovery, operational controls govern how recovery systems restrict access, record activity, and divide custody.
NIST SP 800-57 Part 1 Revision 6 requires a federal key-recovery system to protect key-recovery information against unauthorized disclosure, verify request sources, provide only requested and authorized information, and limit access to key-recovery information, audit trails, and authentication data.
Source: Recommendation for Key Management: Part 1 – General (Revision 6), 2025-12, Appendix B.1.4 Key-Recovery Systems, PDF pp. 165-166
NIST SP 800-57 Part 1 Revision 6 requires a federal key-recovery system to provide an audit trail that prohibits modification and must not contain recovered keys or passwords used by the system.
Source: Recommendation for Key Management: Part 1 – General (Revision 6), 2025-12, Appendix B.1.4 Key-Recovery Systems, PDF pp. 165-166
PCI PIN Security Requirements v3.1 requires unencrypted secret or private keys, including keys loaded from individual key components or shares, to be entered using dual control and split knowledge.
Source: PCI PIN Security Requirements v3.1 — ROC Reporting Template, 2021-03, Control Objective 4, Requirement 12 and 12-1, PDF p. 62
NIST SP 800-152 describes key splitting as a multiparty control technique in which n key splits are provided to n trusted entities so the key cannot be formed unless k entities agree.
Source: A Profile for U.S. Federal Cryptographic Key Management Systems, 2015-10, Section 6.7.5 Key Splitting, PDF p. 76
Handling expired keys and legacy key wrapping
Recovering older keys also involves rules for using expired keying material and unwrapping keys protected under legacy mechanisms.
NIST SP 800-57 Part 1 Revision 6 requires that recovered archived keys with expired cryptoperiods must not apply cryptographic protection, must be erased from the cryptographic process after use, and must remain archived as long as needed.
Source: Recommendation for Key Management: Part 1 – General (Revision 6), 2025-12, Section 7.3.1 Key Archive and Key Recovery Functions, PDF pp. 137-138
NIST SP 800-131A Revision 3 defines key wrapping as encrypting and integrity-protecting keying material with a block-cipher algorithm, disallowing TDEA for key wrapping while allowing TDEA for unwrapping under legacy use.
Source: Transitioning the Use of Cryptographic Algorithms and Key Lengths (Rev 3), 2024-10, Section 10 Key Wrapping, PDF p. 36
Planning key recovery for the post-quantum transition
Because recovered and archived keys often protect long-lived information, post-quantum planning addresses both transition timing and quantum-resistant key transport.
NIST IR 8547 states that NIST will deprecate quantum-vulnerable public-key cryptography after 2030 and disallow its use under NIST standards and guidelines after 2035, noting that systems protecting data with long-term confidentiality needs warrant the earliest transitions.
Source: Transition to Post-Quantum Cryptography Standards, 2026-10, Section 4 PQC Standards Transition Timeline, PDF p. 20
RFC 9936 specifies using the quantum-resistant ML-KEM algorithm with the CMS KEMRecipientInfo structure to transfer content-encryption keys and sets minimum KDF and key-wrapping algorithm requirements for the underlying components.
Source: Use of ML-KEM in the Cryptographic Message Syntax (CMS), 2026-03, Abstract, Section 2 Use of the ML-KEM Algorithm in the CMS, and Section 2.2 Underlying Components
The key takeaway
Enterprise key recovery involves scope decisions, access, audit, and custody controls, expired-key and legacy-unwrapping rules, and post-quantum transition planning.
✓ Reviewed by PQC Today
Check off all sections and mark this reading done.
Try it
Step 2: Envelope Encryption
Compare ML-KEM envelope encryption vs classical RSA-OAEP key wrapping.Step 1: Key Hierarchy
Design a 3-level PQC key hierarchy with Root KEK, Zone KEK, and DEK.Step 3: Hybrid Wrapping
Explore X25519+ML-KEM-768 hybrid combiners with per-provider API mapping.
Your comments on KMS & PQC Key Management(0)
Stored on this device only. A comment never counts toward your progress.
Related resources
- ModuleHSM & PQC OperationsPKCS#11 v3.2 mechanisms, firmware migration, and FIPS validation
- Workshop stepCompare with the other trust hardwareHSMs, TPMs, confidential computing and DPUs side by side
- ModuleCrypto AgilityDesign patterns for algorithm-agnostic cryptographic infrastructure
- ModuleHybrid CryptographyClassical + PQC hybrid schemes for the transition period
- ModuleSecrets ManagementVault, cloud secrets engines, and PQC rotation policies
Loading terms, documents and more…
Production Tool Capabilities & Verification ChecklistCloud Security Architects & Platform Operations
Capabilities to require in your production tools:
- Envelope encryption combining FIPS 203 `ML-KEM` key encapsulation (or hybrid KEM) with `AES-256-GCM` data encryption keys (DEKs).
- KMIP support for PQC key objects, parameter-set attributes and automated key rotation (KMIP 3.0 is a Committee Specification Draft, CSD02, not yet an OASIS Standard), or documented vendor equivalents.
- Immutable CloudTrail / KMS audit logging recording key-usage mechanisms (`Encapsulate`, `Decapsulate`, `Sign`, `Verify`).
How to evaluate in your environment
Exercise a valid staging envelope, then change the KEM ciphertext and check end-to-end authenticated opening. For a valid-length ciphertext, ML-KEM decapsulation may return a different shared key without an error. Require the authenticated envelope to reject.
Production evidence to collect
KMS key metadata JSON showing `ML-KEM` / `ML-DSA` customer master key spec, rotation timestamp, and CloudTrail audit event.
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.
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.