Post-Quantum Cryptography for Developers
Post Quantum Cryptography for Developers: A Practical Workflow Guide
Learn how to inventory cryptographic dependencies, map PQC functions to application needs, choose supported integrations, and plan tests, benchmarks, and a staged rollout.

Post-quantum cryptography for developers means finding where cryptography is used, matching each use to the right function, and integrating it through supported protocols and APIs. Start with an inventory and compatibility tests—not an algorithm swap—then measure application effects and roll out changes in controlled stages.
- Inventory cryptographic use across code, libraries, protocols, certificates, signing systems, and vendor dependencies.
- Match the task to the function: ML-KEM establishes shared secrets; ML-DSA and SLH-DSA provide digital signatures.
- Prefer standardized protocol integrations over custom combinations, and verify that peers and platforms support the chosen path.
- Test negotiation, interoperability, failure behavior, and deployment boundaries; algorithm validation alone is not enough.
- Prioritize systems by data confidentiality lifetime, exposure, migration lead time, and dependency blockers.
What does post-quantum cryptography mean for developers?
Post-quantum cryptography (PQC) is cryptography designed to resist attacks from cryptographically relevant quantum computers. For developers, adopting it involves more than selecting an algorithm: protocols, implementations, certificates, dependencies, and operational processes all affect the result.
A key-encapsulation mechanism (KEM) lets parties establish a shared secret over a public channel. Symmetric cryptography can then use that secret to protect communications. Digital signatures serve a different purpose: they support authentication and integrity rather than establishing a session secret.
NIST’s baseline standards are ML-KEM for key establishment in FIPS 203, ML-DSA for digital signatures in FIPS 204, and SLH-DSA for digital signatures in FIPS 205. NIST approved all three standards on August 13, 2024. These standards define cryptographic building blocks; they do not by themselves make an application quantum-safe.
Protocol design, implementation security, validation, and the certificate and trust ecosystem still matter. A library can implement a standardized algorithm while an application remains exposed through an unsupported protocol, incompatible peer, or unplanned signing dependency.
Where should you start when you implement post-quantum cryptography?
Start with cryptographic discovery, not a replacement algorithm. Look beyond application code: cryptographic operations may be hidden in libraries, managed services, operating systems, hardware security modules (HSMs), certificate systems, and software-update pipelines. Hard-coded algorithm choices can make later migration harder.
Turn discovery into an inventory that has owners and can be updated. NIST’s quantum-readiness fact sheet recommends identifying quantum-vulnerable systems, including systems that sign and validate software or firmware updates, and engaging vendors as part of the work.
For each use, record:
- Algorithm and purpose: What operation occurs—key establishment, signing, or another function?
- Application and dependency: Which application, library, provider, service, or device performs it?
- Protocol and peers: Which protocol uses the operation, and which clients, servers, partners, or devices must interoperate?
- Data sensitivity and confidentiality lifetime: What does the cryptography protect, and how long must that information remain confidential?
- Trust and key dependencies: Which certificates, signing keys, key-management services, HSMs, and trust anchors are involved?
- Ownership and blockers: Who can make changes, and what vendor, platform, or external-service constraints apply?
This is a practical inventory, not a prescribed NIST schema. Make the owner responsible for confirming the entry and updating it when dependencies change.
Use four factors to set priorities: how long protected data must remain confidential, how exposed it is to collection or interception, how long migration is likely to take, and whether a vendor or dependency blocks progress. Address high-sensitivity data with long confidentiality needs and significant exposure early, especially when migration lead time is long. A blocker should trigger vendor engagement and contingency planning, not make the risk disappear from the queue.
For example, a web service and its separate release pipeline have different risks and dependencies. Prioritize the service’s key-establishment path according to the sensitivity and required confidentiality lifetime of traffic, its exposure to interception, peer readiness, and the time needed to update its TLS stack. Assess the release-signing path separately: software-update signatures may depend on certificate and trust changes across the publisher and validating clients. If vendor or device support will take time, start coordination early while recording the blocker and its owner.
Which PQC function belongs in each part of your application?
Choose the function that matches the job: ML-KEM for key establishment, ML-DSA or SLH-DSA for signatures, and symmetric cryptography for protecting bulk data.
- Network key establishment: Use a KEM-based mechanism to establish a shared secret, then use symmetric cryptography with that secret. A KEM is not a bulk data-encryption algorithm.
- Software or document signing: Use a digital-signature function such as ML-DSA or SLH-DSA for authentication and integrity. A signature does not encrypt the document or establish a shared secret.
- Symmetric data protection: Continue to use appropriate symmetric cryptography for data protection. Changing key establishment does not replace the symmetric encryption layer.
FIPS 203 specifies ML-KEM-512, ML-KEM-768, and ML-KEM-1024. NIST lists these parameter sets in order of increasing security strength and decreasing performance. Choose among them with a concrete process:
- Check policy and interoperability first. Identify organizational, regulatory, platform, and protocol requirements. Confirm which parameter sets the relevant libraries and peers support.
- Set the security requirement. Use your organization’s threat model and applicable policy to define the required security level. If policy specifies a parameter set, follow it rather than inventing a local default.
- Test application constraints. Compare supported sets against message-size limits, memory and CPU budgets, latency needs, and the performance of target devices.
- Confirm end-to-end peer support. A locally supported set is not useful if a required client, server, gateway, or partner cannot negotiate it.
Document the choice and the constraints behind it. If policy and interoperability requirements conflict, take that decision to the organization’s cryptography or security owner instead of silently choosing the fastest or most familiar option.
How should you choose an implementation and integrate it safely?
Prefer standards-based implementations and protocol-defined integrations over custom cryptographic constructions. A standardized component gives you a defined integration target, but you still need to check that it fits the protocol, deployment, and support requirements.
When evaluating a library or provider, use this checklist:
- Standards and interfaces: Does it implement the required standards and expose a supported API for the protocol and language you use?
- Protocol integration: Is the PQC mode defined for your protocol, or would you be assembling a custom construction?
- Platform coverage: Does the implementation support your operating systems, processors, runtime, HSMs, and deployment targets?
- Operational fit: Can you manage keys, upgrades, configuration, logging, and incident response without exposing secrets?
- Lifecycle and assurance: What is the support policy, maintenance model, validation status, and upgrade path?
- Production suitability: Does the project explicitly support production use, and are its limitations compatible with your risk requirements?
Check the current standards and implementation documentation before choosing a protocol mode; protocol support and deployment guidance can change. Do not copy a hybrid key-agreement construction from one protocol into another. Its security can depend on the protocol’s transcript, negotiation rules, and other context.
Key-establishment migration and signature migration also have different integration footprints. A key-establishment change may be concentrated in a protocol stack and its peers. A signature change can reach into certificates, certificate authorities, certificate-management protocols, HSMs, update systems, and trust anchors. Treat the web-service and release-signing paths as separate workstreams with their own owners and compatibility gates.
Assess lifecycle as well as feature availability. Check the library’s release policy, supported versions, maintenance horizon, and upgrade requirements. The newest release is not automatically the right production choice; balance required features against compatibility and the time you can maintain the selected version.
Read API documentation carefully, especially for testing controls. If an API exposes a way to supply encapsulation randomness or other deterministic inputs, use it only for the documented testing purpose and ensure production configuration cannot enable it accidentally. Open Quantum Safe’s liboqs README describes the project as intended for research and prototyping and warns against relying on it in production or to protect sensitive data. That warning applies to liboqs, not to every PQC library.
What should your PQC compatibility and failure tests cover?
Test algorithm behavior, protocol interoperability, and application deployment as separate layers. Passing one layer does not establish readiness at the others.
NIST’s migration FAQ explains that the Cryptographic Algorithm Validation Program (CAVP) provides automated testing systems for algorithm implementations, but does not run the generated test vectors through the implementation. Algorithm validation is therefore not a substitute for protocol, interoperability, or deployment testing.
Build a test plan around real integration boundaries. Include:
- Negotiation and interoperability: Successful connections with supported peers, mixed-version peers, and peers with different capabilities.
- Fallback and downgrade behavior: Which fallback modes are permitted? How will the system detect and report a downgrade from the intended mode?
- Failure handling: Malformed or unexpected inputs, timeouts, rejected negotiation, retries, and recovery behavior.
- Keys and persistence: Key generation, import, export, rotation, backup, and storage behavior.
- Signatures and trust: Certificate-chain handling, trust-anchor updates, signing, verification, and update-validation behavior where applicable.
- Network conditions: Packet fragmentation, constrained links, connection limits, and lossy conditions relevant to your deployment.
- Operations: Logging that does not expose secrets, monitoring of negotiation outcomes, and compatibility across library or provider upgrades.
Do not treat classical fallback as a harmless availability switch. Falling back to classical-only key establishment can reintroduce the quantum-vulnerable behavior the migration is meant to address and may expose recorded traffic to later decryption. Define in advance which fallback modes are allowed, how downgrade attempts are detected, who can authorize a temporary classical-only state, and what specific conditions trigger its removal. Record the decision and expiry or review conditions; do not leave it as an undocumented operational exception.
Test side-channel resistance and secure random-bit generation according to the implementation and protocol guidance. Keep deterministic test controls out of production configuration. Include tests that verify the system rejects unsupported or disallowed fallback modes rather than silently weakening its security.
How do you measure the real performance and network impact?
Measure the application path, not just primitive speed. Larger keys, signatures, and protocol messages can affect memory use, packet counts, latency, and reliability. The impact depends on the protocol and network environment, so a benchmark of an isolated operation cannot determine whether a deployment will meet its requirements.
First define the comparison you need. Record a baseline for the current configuration, then measure the candidate implementation with the same workload, hardware, software settings, and network conditions. Include the application’s actual cryptographic operation and its surrounding protocol behavior.
For a practical evaluation, measure:
- Handshake and signing latency distributions, not only averages.
- CPU and memory use on representative target devices.
- Bytes added to protocol messages and resulting packet counts or fragmentation.
- Connection success, retries, and failures under relevant network conditions.
- Effects on throughput, concurrency, and resource limits at expected load.
- Results across the actual processor architectures and software builds you deploy.
Use test traffic and production-like conditions where possible. Separate algorithm cost from network and integration effects, and report both: for example, a slower primitive may have little effect on a short-lived operation but a larger message may cause extra round trips or failures on constrained links. Set acceptance thresholds before a broad rollout, and retain the measurement setup so later library upgrades can be compared consistently.
How should you roll out PQC changes without a flag day?
Turn the inventory into an owned migration plan and change systems in stages. Use compatibility and operational results to decide when to expand, and make rollback and fallback decisions explicit rather than treating them as routine switches.
- Assign owners and priorities. Use confidentiality lifetime, exposure, migration lead time, and dependency or vendor blockers to rank systems. Give each blocker an owner and a next action.
- Establish a baseline. Record current compatibility, performance, failure behavior, and resource use for the affected application and deployment.
- Confirm the supported path. Check the implementation, protocol, peer configuration, and applicable policy before enabling a new mode.
- Test compatibility and failure behavior. Exercise supported peers, negotiation, disallowed downgrades, trust boundaries, and the fallback policy.
- Deploy to a limited cohort. Monitor negotiation outcomes, failures, resource effects, and reports from the affected users or systems.
- Expand or pause based on evidence. Increase scope only when the pre-set acceptance criteria are met. Investigate failures rather than masking them with an unapproved fallback.
- Document rollback authority and risk. Restoring a prior configuration may restore classical-only key establishment and renew long-term exposure. Define who can authorize that state, how it is detected, which systems and data it affects, and what condition triggers removal.
Apply the priority rule to the web service and release-signing example. For the service, consider the confidentiality lifetime and interception exposure of traffic, the time needed to update the TLS stack, and peer support. For release signing, consider how long signatures must remain trustworthy, how widely clients and devices must be updated, and whether vendor support blocks trust changes. The two paths can move on different schedules, but both need owners, decision criteria, and visible blockers.
Before broadening a deployment, verify that each cryptographic use has an owner and function, the selected standards-based path is supported, dependency lifecycles are acceptable, compatibility tests pass, application effects meet the agreed limits, and fallback and rollback decisions have named approvers.
What is the practical developer starting point?
Use this checklist to organize the work:
- Inventory cryptographic use, data sensitivity and lifetime, peers, dependencies, and owners.
- Prioritize systems by confidentiality needs, exposure, migration lead time, and blockers.
- Map each use to key establishment, signatures, or symmetric data protection.
- Choose parameter sets and implementations against policy, interoperability, message-size limits, device performance, and peer support.
- Test algorithms, protocols, failure behavior, downgrade controls, and deployment boundaries.
- Benchmark the full application path on target systems and realistic networks.
- Roll out in stages with named decision owners, explicit fallback rules, and a reviewed rollback plan.
PQC readiness is a system migration, not a drop-in algorithm swap or a claim that an application is automatically quantum-safe. Keep the inventory and decision record current as protocols, dependencies, and peer support change.
Frequently asked questions
Does post-quantum cryptography replace AES or other symmetric encryption?
No. A KEM establishes a shared secret, and symmetric-key algorithms can use that secret for secure communications. A KEM is not a general-purpose replacement for bulk data encryption.
Can I use a PQC library in production before my protocol supports PQC?
A library feature alone does not establish a secure protocol integration. Use a standardized protocol path where available, and do not transplant a hybrid construction into another protocol without an appropriate security analysis. Also check the specific library’s intended use, implementation, and support lifecycle. For example, the Open Quantum Safe liboqs README warns against relying on that project in production or to protect sensitive data.
Does passing an algorithm validation test prove that my application is PQC-ready?
No. NIST’s CAVP provides automated testing systems for algorithm implementations, but algorithm validation does not replace application, protocol, interoperability, and deployment tests.
How should a team handle third-party services or devices that do not support hybrid key agreement?
Record the dependency and owner in the inventory, engage the vendor, and identify which applications or peers depend on that capability. Plan deployment around observed compatibility, and keep the blocker visible. Define whether any fallback is permitted, how downgrade behavior will be detected, who can authorize a temporary classical-only state, and what conditions will trigger its removal.