Preparing Cryptography for Quantum Computers
This lesson explains which cryptography quantum computers threaten, the post-quantum options AWS offers with ML-KEM and ML-DSA, and how to plan the migration.
Learning outcomes
After completing this lesson, you will be able to:
- Explain the harvest-now, decrypt-later risk and which algorithms are affected.
- Distinguish ML-KEM key exchange from ML-DSA signatures and where AWS supports each.
- Describe the steps of a post-quantum migration strategy.
What is at risk
Public-key algorithms such as RSA and elliptic curve cryptography are used for key exchange (agreeing session keys in TLS) and digital signatures (proving who signed code, firmware or documents). A quantum computer running Shor's algorithm could break both. Two risks follow: harvest now, decrypt later, in which an adversary records encrypted traffic today to decrypt it once quantum computers exist, and forgery of long-lived signatures. Symmetric encryption such as AES-256 and hash functions are considered quantum resistant at current key sizes, so data encrypted at rest with KMS symmetric keys is not the urgent problem.
Post-quantum options on AWS
ML-KEM for key exchange
ML-KEM (FIPS 203) is a post-quantum key encapsulation mechanism. AWS uses it in hybrid TLS key exchange, which combines it with a classical algorithm (X25519MLKEM768), so a connection is secure if either algorithm holds. AWS KMS, ACM and Secrets Manager endpoints accept hybrid post-quantum TLS from SDKs that support it and opt in (and some Secrets Manager clients enable it automatically), and Application and Network Load Balancers offer post-quantum TLS security policies for client connections, with classical fallback for clients that do not support it.
ML-DSA for signatures
ML-DSA (FIPS 204) is a post-quantum digital signature algorithm. AWS KMS supports asymmetric keys with the ML_DSA_44, ML_DSA_65 and ML_DSA_87 key specs, created and used inside KMS HSMs with the existing CreateKey, Sign and Verify APIs, and AWS Private CA can issue ML-DSA certificates for code and document signing.
Which post-quantum measure?
A migration strategy
-
Inventory
Find where public-key cryptography is used for key exchange and signatures, including in vendors' products.
-
Prioritise
Rank by how long data must stay confidential and how long signatures must stay valid.
-
Adopt hybrid TLS
Enable ML-KEM hybrid key exchange on endpoints and load balancers that support it.
-
Move long-lived signatures
Sign firmware, code and records that must be trusted for years with ML-DSA keys.
-
Stay agile
Keep algorithms configurable so they can change without redesign.
A medical device maker
A medical device maker sends patient telemetry to AWS over TLS and signs device firmware that devices will verify for 15 years. Its regulator asks for a post-quantum plan.
The inventory shows two priorities: telemetry, which must remain confidential for decades, and firmware signatures. The team selects a post-quantum TLS security policy on the NLB that receives telemetry and updates the device TLS library to offer hybrid ML-KEM key exchange.
Firmware is now signed in the build pipeline with a KMS key that uses the ML-DSA key spec, and new devices ship with ML-DSA verification. Data at rest stays encrypted with KMS symmetric keys, which need no change.
Does data encrypted at rest with KMS symmetric keys need to be re-encrypted for quantum resistance?
Show answer
No. AES-256 symmetric encryption is considered quantum resistant. The urgent work is public-key key exchange in TLS and long-lived digital signatures.
Exam Tips
Remember for the exam
- Protect data in transit now against harvest-now, decrypt-later: hybrid ML-KEM TLS.
- Signatures that must stay valid for decades: KMS keys with an ML-DSA key spec.
- AES-256 symmetric encryption at rest is already considered quantum resistant.
- First step of a post-quantum strategy: inventory public-key cryptography and prioritise by data lifetime.