Learn · Practitioner
Cryptographic APIs & Developer Languages
Compare JCA/JCE, OpenSSL, PKCS#11, CNG, and Bouncy Castle across 7 languages — with PQC readiness, provider patterns, library selection, and migration guidance.
For you, every role: what this means
- Developer / Engineer
- Compare JCA/JCE, OpenSSL EVP, PKCS#11, Windows CNG and Bouncy Castle across seven languages, then work through the provider-pattern examples for KeyGen, Sign, Verify, Encrypt and KEM and the API-by-algorithm support matrix.
- Researcher / Academic
- The eight-library deep dive (liboqs, AWS-LC, Bouncy Castle and others) and the support matrix with status badges and versions are the current state of PQC library support, with the build-versus-buy scoring wizard on top.
Cryptographic APIs have grown organically over decades. Each emerged from a specific need: PKCS#11 was created by RSA Laboratories in the mid-1990s to provide a vendor-neutral interface to hardware security modules. JCA/JCE debuted in the late 1990s as Sun Microsystems built cryptography into the Java platform with a pluggable provider model. CNG replaced the legacy CryptoAPI in Windows Vista, separating key storage providers from algorithm providers. OpenSSL's EVP API evolved to abstract over multiple algorithm implementations, with v3.x adding a loadable provider system.
These APIs are not interchangeable — they reflect different design philosophies, security models, and deployment targets. Understanding their relationships helps you choose correctly and design for crypto agility.
The key takeaway
Major cryptographic APIs evolved for distinct targets and security models, and understanding how they relate helps developers choose appropriately and design for crypto agility.
✓ Reviewed by PQC Today
Despite their differences, all crypto APIs share a common set of abstractions:
- ▸Provider / Plugin Model: Algorithm implementations are pluggable. Your application code stays the same; the provider changes. This is the foundation of crypto agility.
- ▸Key Lifecycle: Keys are generated, stored (opaque handles), used, rotated, and destroyed. Never extract raw key material except at the system boundary.
- ▸Algorithm Negotiation: Algorithms are selected at initialization time, not operation time. TLS does this at the protocol level; your API should too.
- ▸Opaque Handles vs Raw Material: Whether a key can be extracted is a property of the key and the module policy, not of the word "hardware". PKCS#11 expresses it with CKA_SENSITIVE and CKA_EXTRACTABLE; a Luna HSM, for example, creates keys non-extractable by default (they can be cloned to another HSM partition) unless you create them extractable. A FIPS 140 level does not set that policy: FIPS 140-2 allows keys to leave a Level 3 module in encrypted form. Design for opaque handles throughout and check the actual module policy.
- ▸Session / Context Management: Operations happen in contexts (JCA Signature, EVP_MD_CTX, PKCS#11 Session). Initialize → Update → Finalize is the universal pattern.
The key takeaway
Crypto APIs share five core abstractions: pluggable providers for crypto agility, key lifecycle management, initialization-time algorithm negotiation, opaque key handles, and operation contexts.
✓ Reviewed by PQC Today
The is the standard Java cryptographic framework. Engine classes (KeyPairGenerator, Cipher, Signature) delegate to pluggable Provider implementations registered at startup.
plays a dual role: as a JCA provider (new BouncyCastleProvider() registered via Security.addProvider()), and as a standalone lightweight API for environments where JCA overhead is undesirable. BC has offered ML-KEM, ML-DSA and SLH-DSA (FIPS 203, 204, 205) since release 1.79 (October 2024).
Thales Luna HSMs have two separate Java routes. The Luna JSP is a JCA/JCE provider (LunaProvider): once registered, standard JCA calls reach the HSM. is a different library, a Java wrapper for the PKCS#11 API (package com.safenetinc.jcprov): you write PKCS#11-style code, not JCA calls. Choose by whether you want JCA portability or direct control of PKCS#11 objects.
OpenSSL's EVP API (Envelope) is the high-level, algorithm-agnostic layer. Use EVP_PKEY for key objects,EVP_MD_CTX for hashing, andEVP_CIPHER_CTX for encryption. Never use the deprecated low-level APIs (RSA_*, EC_*).
OpenSSL 3.5+ (April 2025) ships native ML-KEM, ML-DSA, and SLH-DSA in the default provider — no plugin needed. On OpenSSL before 3.5, or for algorithms that are not standardised, OSSL_PROVIDER_load(NULL, "oqsprovider") loads PQC algorithm support at runtime via the . Either way, the EVP call pattern stays the same when you switch to PQC. What still changes: the algorithm identifier, key, signature and ciphertext sizes (and the buffers and storage that hold them), key encodings, TLS group and signature negotiation, and the error paths for peers or builds that lack the algorithm.
The key takeaway
OpenSSL's EVP API keeps call patterns consistent across native OpenSSL 3.5+ or oqsprovider PQC, though identifiers, buffer sizes, encodings, and negotiation still change.
✓ Reviewed by PQC Today
PKCS#11 is a C API standard for communicating with cryptographic tokens (HSMs, smart cards, TPMs). The key objects are Slots, Tokens, and Sessions. Operations follow the pattern: C_Initialize → C_GetSlotList → C_OpenSession → C_Login → C_GenerateKeyPair → C_Sign.
PKCS#11 v3.2 (OASIS Standard, 3 June 2026) adds PQC mechanisms: CKM_ML_KEM_*, CKM_ML_DSA_*, CKM_SLH_DSA_*. Hardware tokens are beginning to implement these — Thales Luna (Firmware 7.9.0+, Client 10.9.0+) and Utimaco (Quantum Protect application package) both ship it now.
PKCS#11 sessions are mandatory — unlike JCA or OpenSSL, every operation requires an open session. Session management is the #1 source of bugs in PKCS#11 implementations.
The key takeaway
This C API standard for hardware cryptographic tokens adds PQC mechanisms in v3.2, but requires mandatory sessions that frequently cause implementation bugs.
✓ Reviewed by PQC Today
separates algorithm providers (BCryptOpenAlgorithmProvider) from key storage providers (NCryptOpenStorageProvider). The manages key isolation — private keys can live in software, TPM, or HSM without changing application code.
CNG integrates with the Windows certificate store and is the foundation for Windows FIPS mode. Microsoft lists ML-KEM and ML-DSA BCRYPT identifiers beginning with Windows 11 24H2 for desktop apps, while the current end-to-end BCrypt examples are marked prerelease. Verify support on the target build and provider. A BCRYPT primitive does not establish persisted-key support through NCrypt/KSP, certificate support, or TLS negotiation through Schannel. SLH-DSA has an identifier but is not implemented by the default CNG provider. Do not infer FIPS validation from an algorithm identifier; check the exact module certificate and approved-mode scope for the target system.
The key takeaway
Windows CNG separates algorithm and key storage providers, and its ML-KEM and ML-DSA identifiers require verifying actual provider, protocol, and FIPS support.
✓ Reviewed by PQC Today
Choosing your crypto library source is a strategic decision with long-term implications:
- + Full control, IP ownership, custom optimizations
- − Extreme cost: crypto expertise, side-channel audits, FIPS certification
- − Ongoing maintenance burden; must patch every new CVE
- ✓ Only justified for Google, Amazon, Signal-level usage
- + Community-audited, transparent, large ecosystem
- + Zero licensing cost; PQC support often first here
- − No SLA; vulnerability timing depends on maintainers
- ✓ OpenSSL, Bouncy Castle, liboqs for most use cases
- + Vendor SLA, pre-certified (FIPS 140-3, Common Criteria)
- + Compliance documentation, incident response support
- − Vendor lock-in, cost, slower PQC adoption
- ✓ Regulated industries: finance, defense, government
The key takeaway
Open-source libraries are recommended for most use cases, commercial options suit regulated industries, and building custom cryptography is high risk and only narrowly justified.
✓ Reviewed by PQC Today
The PQC library ecosystem is maturing rapidly. Key libraries by use case:
| Library | Language | Best For | FIPS Path |
|---|---|---|---|
| liboqs | C | Reference implementations, bindings hub | Not validated (research) |
| AWS-LC | C | FIPS-validated production, cloud | Validated |
| BoringSSL | C | Google's fork, embedded in Chrome/Android | BoringCrypto |
| Bouncy Castle | Java/.NET | JVM/CLR, widest PQC coverage | Planned |
| pqcrypto | Rust | Compile-time safety, Rust ecosystem | Community |
| PQClean | C | Clean reference implementations (no longer under active maintenance), feeds other libs | Reference |
| wolfSSL | C | Embedded/IoT, small footprint | Validated |
| Botan | C++ | Native PQC since 3.x, modern C++ | Planned |
The key takeaway
Open-source PQC libraries span C, C++, Rust, and Java/.NET, differing in target environments, maintenance status, and FIPS validation paths.
✓ Reviewed by PQC Today
OpenSSL (EVP)Botan 3.xCrypto++wolfSSLRustCryptoringpqcryptoaws-lc-rsJCA/JCEBouncy CastleJCProvcryptography.iopyOpenSSLliboqs-pythonBrowser limit: this Python workbench runs crypto examples, but it cannot open TLS sockets or validate certificates. Pyodide’s browser ssl module is a stub; see Pyodide’s documented limits.
crypto/mlkemcrypto/mldsacrypto/tlsCIRCLSystem.Security.CryptographyBouncy Castle C#CNG interopstd.cryptoC interop via translate-cThe key takeaway
Programming languages provide PQC through specific libraries and runtime versions, with some languages also noting constraints around memory management, key zeroing, or constant-time review.
✓ Reviewed by PQC Today
Current production-readiness by API:
Cross-Module References
- • Crypto Agility — Surface-level provider patterns → this module for deep dive
- • HSM-PQC — PKCS#11 from admin view → this module for developer API view
- • KMS-PQC — KMIP protocol → this module for API-level integration
- • Code Signing — Signing operations → this module for API selection
- • OS Cryptographic Stacks — OS-level crypto providers → this module for application API layer
- • Platform Engineering — CI/CD pipeline crypto → this module for library selection
The key takeaway
Production readiness varies across cryptographic libraries, with ML-KEM and ML-DSA stable in several ecosystems while SLH-DSA and some implementations remain experimental or third-party only.
✓ Reviewed by PQC Today
This section examines the cryptographic patterns that analysis tools search for, how detection rules can be tailored, how teams handle false positives, and how automated checks fit into development workflows.
What code analysis looks for
NIST SP 800-131A Revision 3 states that large-scale quantum computers will threaten NIST-approved public-key algorithms, so digital signature schemes and Diffie-Hellman, MQV, and RSA key establishment will need quantum-resistant replacements.
Source: Transitioning the Use of Cryptographic Algorithms and Key Lengths (Rev 3), 2024-10, Section 1.2.3, Transition Strategy from the 112-Bit Security Strength, PDF p. 13
NIST SP 800-131A Revision 3 notes that an algorithm's approval status often depends on its key length or strength, its domain parameters, and the mode or manner of use.
Source: Transitioning the Use of Cryptographic Algorithms and Key Lengths (Rev 3), 2024-10, Section 1.2.2, Definition of Status Approval Terms, PDF p. 12
NIST NCCoE SP 1800-38B notes that existing cryptographic CWEs include CWE-327 for broken or risky cryptographic algorithms and CWE-326 for inadequate encryption strength.
Source: Migration to Post-Quantum Cryptography: Quantum Readiness — Cryptographic Discovery, 2023-12, Section 3.4.2, Vulnerabilities, PDF p. 28
The OWASP Secrets Management Cheat Sheet observes that many organizations leave API keys, database credentials, SSH keys, and certificates hardcoded in plaintext inside source code and configuration files.
Source: Secrets Management - OWASP Cheat Sheet Series, Section 1, Introduction (web text, no PDF page numbers)
In the NIST NCCoE SP 1800-38B IDE demonstration, discovery tools identify files and lines of code making post-quantum vulnerable cryptographic API calls such as RSA and ECDSA.
Source: Migration to Post-Quantum Cryptography: Quantum Readiness — Cryptographic Discovery, 2023-12, Appendix D.4, Use Case 4, PDF pp. 66–67
Customizing queries, configurations, and signatures
Once the cryptographic targets are clear, analysis tools can be configured to search for specific calls and secret formats.
In the NIST NCCoE SP 1800-38B pipeline demonstration, an analyst can extract data from an existing codebase to create a queryable database and execute a query that detects vulnerable algorithm usage.
Source: Migration to Post-Quantum Cryptography: Quantum Readiness — Cryptographic Discovery, 2023-12, Section 4.1.1, Protecting the Code Development Pipeline, PDF p. 34
In the NIST NCCoE SP 1800-38B COBOL use case, users update a JSON configuration file to identify the cryptographic calls they want to search for when discovering post-quantum vulnerable algorithms.
Source: Migration to Post-Quantum Cryptography: Quantum Readiness — Cryptographic Discovery, 2023-12, Appendix D.3, Use Case 3, PDF p. 66
The OWASP Secrets Management Cheat Sheet states that because many types of secrets exist, organizations should consider detection signatures for each type to achieve accurate detection.
Source: Secrets Management - OWASP Cheat Sheet Series, Section 8.2, Types of secrets to be detected (web text, no PDF page numbers)
The OWASP Secrets Management Cheat Sheet recommends evaluating detection utilities and their signatures often and correlating results from more than one tool to identify detection weaknesses.
Source: Secrets Management - OWASP Cheat Sheet Series, Section 8.1, General detection approaches (web text, no PDF page numbers)
Balancing detection accuracy and alert fatigue
Broader rules surface more potential issues, which raises the question of how teams separate real findings from noise.
NIST SP 800-204D states that code analysis tools should be implemented to catch common mistakes while avoiding inundating developers with too many false positives that cause alert fatigue.
Source: Strategies for the Integration of Software Supply Chain Security in DevSecOps CI/CD Pipelines, 2024-02, Section 3.2.2, Controls for Interacting With SCM Systems, PDF p. 21
NIST NCCoE SP 1800-38B notes that weaknesses associated with future vulnerabilities from a quantum threat only manifest if certain conditions are met, creating the potential for many false positives.
Source: Migration to Post-Quantum Cryptography: Quantum Readiness — Cryptographic Discovery, 2023-12, Section 3.4.2, Vulnerabilities, PDF p. 28
The OWASP Secrets Management Cheat Sheet notes that consistently formatted secrets are easier to detect with lower false-positive rates, but detection rules can miss a human-created password that does not match them.
Source: Secrets Management - OWASP Cheat Sheet Series, Section 8.1, General detection approaches (web text, no PDF page numbers)
NIST SP 800-218 gives the example of using a static analysis tool to automatically check code for vulnerabilities and compliance with secure coding standards, with a human reviewing reported issues and remediating them as necessary.
Source: Secure Software Development Framework (SSDF) Version 1.1, 2022-02, Practice PW.7, Task PW.7.2 and Example 4, PDF p. 23
Integrating checks into development pipelines
Tuned analysis rules become part of ongoing engineering practice when they run automatically across pipelines and toolchains.
NIST SP 800-204D states that SAST and DAST tools covering all development languages should be run in CI/CD pipelines, providing code coverage reports to developers and security personnel.
Source: Strategies for the Integration of Software Supply Chain Security in DevSecOps CI/CD Pipelines, 2024-02, Section 5.1.4, Secure Code Commits, PDF p. 28
NIST SP 800-218 gives the example of adding automated detection mechanisms to the toolchain so future instances of a recurring vulnerability root cause are caught automatically.
Source: Secure Software Development Framework (SSDF) Version 1.1, 2022-02, Practice RV.3, Task RV.3.2, Example 2, PDF p. 27
NIST SP 800-204D recommends scanning artifacts in internal repositories for newly discovered or identified defects and having the ability to stop their use in builds based on criticality.
Source: Strategies for the Integration of Software Supply Chain Security in DevSecOps CI/CD Pipelines, 2024-02, Section 3.2.1, Baseline Security, PDF p. 21
The key takeaway
Tailoring queries and signatures helps CI/CD pipelines catch vulnerable cryptographic calls and hardcoded secrets while balancing detection accuracy against developer alert fatigue.
✓ Reviewed by PQC Today
This section examines how static code analysis fits into software development to locate cryptographic usage and feed tracking workflows. It also covers where automated source scanning reaches its limits and what complementary reviews are used alongside it.
What static code analysis covers in development
NIST SP 800-53 describes static code analysis as a security review method that checks code for weaknesses, identifies vulnerable or out-of-date included libraries, and can be used to enforce secure coding practices.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, Chapter 3, Control Enhancement SA-11(1) Static Code Analysis, PDF p. 304
According to NIST SP 800-53, static code analysis is most effective early in development, when each code change can automatically be scanned for potential weaknesses; it can provide clear remediation guidance and identify defects for developers to fix.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, Chapter 3, Control Enhancement SA-11(1) Static Code Analysis, PDF p. 304
Detecting cryptographic usage and building inventories
Applied specifically to cryptography, automated code scanning helps surface vulnerable algorithms and populate cryptographic inventories.
NIST NCCoE SP 1800-38B demonstrates a code development pipeline that runs queries from a command-line tool, an IDE plugin, or pull-request automation to detect vulnerable algorithms in a codebase.
Source: Migration to Post-Quantum Cryptography: Quantum Readiness — Cryptographic Discovery, 2023-12, Section 4.1.1 Protecting the Code Development Pipeline, PDF p. 34
OMB M-26-15 recommends using Static/Dynamic Application Security Testing (SAST/DAST) to find cryptographic functions in code, alongside network scanners for protocols and cipher suites, to populate a central Cryptographic Bill of Materials (CBOM) for a real-time view of cryptographic posture.
Source: OMB Memorandum M-26-15 — Execution of the Migration to Post-Quantum Cryptography, 2026-06, Section 6 Leveraging Automation for Discovery and Enforcement, PDF p. 9
Triaging findings and tracking progress
Once scans surface cryptographic findings, published guidance describes how teams route those results into issue tracking, normalized reports, and monitoring dashboards.
NIST SP 800-218 includes a task to perform code review or code analysis and to record and triage all discovered issues and recommended remediations in the development team's workflow or issue tracking system.
Source: Secure Software Development Framework (SSDF) Version 1.1, 2022-02, Table 1, Task PW.7.2, PDF p. 23
NIST NCCoE SP 1800-38B identifies the need for a common format to represent normalized discovery reports, noting that consolidating vulnerable algorithm discovery reports with other cybersecurity product reports enables enterprise-level risk management.
Source: Migration to Post-Quantum Cryptography: Quantum Readiness — Cryptographic Discovery, 2023-12, Section 4.1.4 Common Output Elements for Identifying Vulnerable Systems, PDF p. 37
OMB M-26-15 says data from automated inventory and policy checks should, when possible, feed directly into continuous-monitoring dashboards that can track migration progress against agency timelines and provide leadership and compliance metrics.
Source: OMB Memorandum M-26-15 — Execution of the Migration to Post-Quantum Cryptography, 2026-06, Section 6 Leveraging Automation for Discovery and Enforcement, PDF p. 9
Limits of static scanning and complementary checks
Because not all cryptographic behavior is visible in static source code, planning also accounts for runtime visibility and manual review.
The OWASP CycloneDX CBOM guide notes that with cryptographic agility, algorithms are less commonly fixed in software and are instead configured during deployment or negotiated in each network protocol session.
Source: OWASP CycloneDX: CBOM Authoritative Guide, 2023-06, Section 'Identify quantum unsafe and weak cryptography'
CERT-In's SBOM and QBOM guidelines describe a Runtime SBOM created by monitoring active software components during runtime to capture external interactions and dynamically loaded dependencies.
Source: India CERT-In Technical Guidelines on SBOM, QBOM, CBOM, AIBOM, and HBOM v2.0, 2025, Section 3.2.6, PDF p. 14
NIST SP 800-53 says manual code reviews identify weaknesses requiring application requirements or context generally unavailable to automated static and dynamic analysis and can review detailed cryptographic implementations.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, Chapter 3, Control Enhancement SA-11(4) Manual Code Reviews, PDF p. 305
The key takeaway
Static code analysis locates cryptographic usage early for triage and reporting, while planning also accounts for runtime visibility and manual code review.
✓ Reviewed by PQC Today
This section introduces dynamic analysis of cryptographic code.
What dynamic analysis covers
NIST SP 800-53 describes dynamic code analysis as runtime verification that monitors programs for memory corruption, user privilege issues, and other security problems to confirm security functionality performs as designed.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, SA-11(8) Dynamic Code Analysis, PDF page 306
NIST SP 800-53 defines fuzz testing as a type of dynamic analysis that induces program failures by introducing malformed or random data, with strategies derived from application intended use and specifications.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, SA-11(8) Dynamic Code Analysis, PDF page 306
NIST SP 800-53 describes instrumentation-based application security testing as detecting vulnerabilities by observing running applications, using direct measurements, working in real time, and being usable continuously throughout the system development life cycle.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, SA-11(9) Interactive Application Security Testing, PDF page 306
Runtime flaws in cryptographic implementations
Next, consider runtime flaws in cryptographic implementations.
Bernstein reports that one ML-DSA vulnerability was a buffer overread, and writes that severe ML-DSA software vulnerabilities might include leaks of secret data from RAM or buffer overflows giving an attacker complete control over the program.
Source: Exploiting ML-DSA bugs, 2026-06, Section 7.5, PDF page 26
Schröder et al. report that in the HQC round 4 optimized implementation, a modulo operation in a loop can lead the compiler to emit division (div) instructions that yield a timing side-channel when operating on secret data.
Source: Divide and Surrender: Exploiting Variable Division Instruction Timing in HQC Key Recovery Attacks, 2024-08, Abstract, PDF page 2
Bernstein notes that the eBACS benchmarking tool SUPERCOP runs correctness tests using output checksums across implementations, catching code changes that modify signatures even when those signatures still pass verification.
Source: Exploiting ML-DSA bugs, 2026-06, Section 3.2.2 Checksums of outputs for known derandomized inputs, PDF page 12
Measuring coverage and planning for runtime testing
Next, consider coverage and planning for runtime testing.
To assess the scope and assurance of dynamic code analysis, NIST SP 800-53 notes that organizations may use code coverage analysis, tracking metrics such as the percent of subroutines tested or program statements called.
Source: NIST SP 800-53 Rev. 5 - Security and Privacy Controls (Release 5.2.0), 2020-09, SA-11(8) Dynamic Code Analysis, PDF page 306
NIST SP 800-218 lists integrating dynamic vulnerability testing and using fuzz testing tools to find input-handling issues as implementation examples for executable code testing.
Source: Secure Software Development Framework (SSDF) Version 1.1, 2022-02, Practice PW.8, Tasks PW.8.1 and PW.8.2, PDF page 24
This section covers published guidance and regulatory documents on component selection, dependency tracking, vulnerability handling, and production readiness.
Sourcing and evaluating open-source components
NIST SP 800-204D notes that pulling open-source packages based on developer or repository reputation gives no guarantee that the code matches what the developer authored.
Source: Strategies for the Integration of Software Supply Chain Security in DevSecOps CI/CD Pipelines, 2024-02, Section 3.1.5 Types of Exploits, PDF page 19
NIST SP 800-204D says the security team should establish a policy for trusted OSS sources, such as allow-lists, that includes reviewing minimum coding requirements and reputational standards, and should approve the merging of unverified OSS sources.
Source: Strategies for the Integration of Software Supply Chain Security in DevSecOps CI/CD Pipelines, 2024-02, Section 3.2.1 Baseline Security, PDF page 21
NIST SP 800-218 says to verify that acquired open-source components meet organizational requirements throughout their life cycles; one implementation example is ensuring that each component is actively maintained and has not reached end of life.
Source: Secure Software Development Framework (SSDF) Version 1.1, 2022-02, Table 1, Practice PW.4, Task PW.4.4, PDF page 22
The EU Cyber Resilience Act requires open-source software stewards to document a verifiable cybersecurity policy that fosters secure products and effective vulnerability handling, including documenting, addressing, and remediating vulnerabilities and promoting the sharing of information about discovered vulnerabilities within the community.
Source: EU Cyber Resilience Act (CRA) — Regulation EU 2024/2847, 2024-10, Article 24(1) Obligations of open-source software stewards, PDF page 45
Verifying packages and tracking dependencies
Once an open-source component is selected, attention turns to inspecting its full dependency tree and recording its contents.
NIST SP 800-204D states that open-source dependencies must be enumerated, understood, and evaluated for policy, and says dependency file detectors should detect all dependencies, preferably with no limit on analyzed nested or transitive depth.
Source: Strategies for the Integration of Software Supply Chain Security in DevSecOps CI/CD Pipelines, 2024-02, Section 5.1.4 Secure Code Commits, PDF page 29
NIST SP 800-204D recommends verifying digital signatures, running vulnerability scans, checking for recent updates on downloaded open-source packages, and generating an SBOM with dependency scanning on the first commit.
Source: Strategies for the Integration of Software Supply Chain Security in DevSecOps CI/CD Pipelines, 2024-02, Section 3.2.1 Baseline Security, PDF page 21
NIST SP 800-161r1 states that if an enterprise requires an SBOM for an open-source project that lacks one, it needs to contribute SBOM generation or resources, or generate an SBOM upon first consuming each version.
Source: NIST SP 800-161r1-upd1 — Cybersecurity Supply Chain Risk Management Practices for Systems and Organizations, 2022-05, Section CM-8(10) System Component Inventory | SBOMs for Open Source Projects, PDF page 109
Vulnerability handling and production readiness
Long-term adoption also involves ongoing vulnerability tracking and checking whether a cryptographic library is ready for production use.
NIST SP 800-218 says to gather information from acquirers, users, and public sources on potential vulnerabilities and investigate credible reports; it gives automatically reviewing provenance and software-composition data as an implementation example.
Source: Secure Software Development Framework (SSDF) Version 1.1, 2022-02, Table 1, Practice RV.1, Task RV.1.1, PDF page 25
The EU Cyber Resilience Act requires manufacturers that identify a vulnerability in an integrated open-source component to report it to the maintainer and remediate it; where appropriate, manufacturers that develop a software or hardware modification must share the relevant code or documentation.
Source: EU Cyber Resilience Act (CRA) — Regulation EU 2024/2847, 2024-10, Article 13(6) Obligations of manufacturers, PDF page 36
The Open Quantum Safe oqs-provider documentation states that it is meant for testing experimental post-quantum cryptography, has not received auditing needed for high-security use, and does not recommend relying on it in production environments or to protect sensitive data.
Source: oqs-provider: OpenSSL 3 provider containing post-quantum algorithms, General Disclaimer and Component Disclaimer
NIST FIPS 140-3 Implementation Guidance requires a cryptographic module’s ML-KEM implementation to show compliance with FIPS 203 and SP 800-227; in an approved ML-KEM hybrid scheme, a non-approved non-ML-KEM cannot be offered as an independent approved service, such as a separate API call in a software library.
Source: Implementation Guidance for FIPS 140-3 and the Cryptographic Module Validation Program, 2026-08, Section D.S Key Encapsulation Mechanisms, PDF page 223
The key takeaway
Adopting open-source PQC libraries requires verifying provenance, tracking transitive dependencies with SBOMs, managing vulnerabilities, and confirming production auditing or FIPS 140-3 readiness.
✓ Reviewed by PQC Today
This section introduces cryptographic middleware interfaces, key management protocols, and runtime provider APIs. It is designed for application developers and platform engineers working with cryptographic software.
Token Interfaces, Providers, and Key Management
OASIS PKCS #11 Specification Version 3.2 specifies the Cryptoki application programming interface, which isolates an application from cryptographic device details so the application remains portable across different device types and environments.
Source: PKCS #11 Specification Version 3.2 (OASIS Standard), 2026-06, Section 1 introduction
A PKCS #11 provider makes cryptographic functionality available to a consuming application via the PKCS #11 API, and a baseline provider offers the ability to provide information about the capabilities of its cryptographic services.
Source: PKCS #11 Cryptographic Token Interface Profiles Version 3.2 (OASIS Standard), 2026-06, Section 5.1 Baseline Provider, PDF p. 14
IETF RFC 7512 specifies a PKCS #11 URI scheme for identifying objects stored in PKCS #11 tokens as well as tokens, slots, and libraries, rather than creating new tokens or objects.
Source: RFC 7512 — The PKCS #11 URI Scheme, 2015-04, Abstract; Section 1
The KMIP version 3.0 committee specification draft defines a client-server protocol for certain management operations on managed objects (including symmetric and asymmetric cryptographic keys and digital certificates) stored by a key management system, including generating keys and registering, obtaining, destroying, and searching for objects.
Source: Key Management Interoperability Protocol Specification Version 3.0, 2026-05, Front matter (Committee Specification Draft 02) and Section 1 introduction
Post-Quantum Support in Runtime Providers and APIs
The following claims look at post-quantum support in runtime providers and language APIs.
For OpenSSL (>=v3), oqs-provider implements a single shared library enabling TLS 1.3 KEM key establishment, OpenSSL (3.0) provider key management, and hybrid KEM schemes, plus EVP QSC signatures (with CMS/CMP), adding TLS 1.3 signatures and resolving final CMS glitches from OpenSSL 3.2.
Source: oqs-provider: OpenSSL 3 provider containing post-quantum algorithms, README, purpose and status
The Key Encapsulation Mechanism API enables applications to use KEM algorithms, including candidate algorithms for the NIST post-quantum cryptography standardization process, and allows security providers to implement them in Java or native code.
Source: JEP 452: Key Encapsulation Mechanism API, 2023-01, Summary and Goals
OpenJDK JEP 496 defines standard algorithm and parameter-set names for ML-KEM in the KeyPairGenerator, KEM, and KeyFactory APIs, while noting that passing an integer key size to KeyPairGenerator is unsupported for ML-KEM and throws an InvalidParameterException.
Source: JEP 496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism, 2024-08, Description and Generating ML-KEM key pairs
In OpenJDK JEP 497, ML-DSA uses the existing KeyPairGenerator and Signature APIs, where a Signature instance initialized with the family name accepts any ML-DSA parameter set, whereas one initialized with a specific parameter-set name rejects other parameter sets.
Source: JEP 497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm, 2024-08, Description and Signing with ML-DSA keys
Provider Overlap and Module Validation Scope
The following claims cover provider overlap and module validation scope.
According to the oqs-provider documentation, a post-quantum algorithm is unavailable through oqs-provider on OpenSSL 3.5 or later if OpenSSL's default provider already implements that exact algorithm, while unimplemented hybrid combinations remain available.
Source: oqs-provider: OpenSSL 3 provider containing post-quantum algorithms, README, Using with OpenSSL >= 3.5
NIST FIPS 140-3 Implementation Guidance states that a cryptographic module validation certificate specifies the validated module's name, version number, and tested operational environment, serving as a benchmark for the tested configuration.
Source: Implementation Guidance for FIPS 140-3 and the Cryptographic Module Validation Program, 2026-08, Section 2.3.A Binding of Cryptographic Algorithm Validation Certificates, PDF p. 25
The key takeaway
PKCS #11 and KMIP cover token interfaces and key management, while runtime providers like oqs-provider and OpenJDK APIs add post-quantum algorithms.
✓ Reviewed by PQC Today
Check off all sections and mark this reading done.
Try it
Step 3: Provider Pattern Workshop
Side-by-side code examples for KeyGen, Sign, Verify, Encrypt, and KEM Encapsulate across all APIs — highlighting the provider registration pattern.Step 1: API Architecture Explorer
Compare JCA/JCE, OpenSSL, PKCS#11, CNG, Bouncy Castle, and JCProv — architecture diagrams, key objects, session models, and PQC status.Step 2: Language Ecosystem Comparator
Evaluate 7 languages (C++, Rust, Zig, Java, Python, Go, .NET) across memory safety, crypto ecosystem, FFI capability, and PQC binding availability.
Your comments on Cryptographic APIs & Developer Languages(0)
Stored on this device only. A comment never counts toward your progress.
Related resources
- ModuleCrypto AgilityDesign provider-agnostic APIs to swap algorithms at runtime
- ModuleHSM & PQCPKCS#11 from the HSM admin view vs. developer API perspective
- ModuleKMS & PQCKMIP protocol and API-level key management integration
- ModuleCode SigningSigning operations and API selection for CI/CD pipelines
- ModuleOS Cryptographic StacksOS-level crypto providers that application APIs build on top of
Loading terms, documents and more…
Production Tool Capabilities & Verification ChecklistSoftware Engineers, Library Maintainers & AppSec Leads
Capabilities to require in your production tools:
- High-level KEM API usage (`EVP_PKEY_encapsulate` / `EVP_PKEY_decapsulate` in OpenSSL 3.5+, `KEM` API in Java 21+, `crypto/mlkem` in Go 1.24+) replacing raw RSA `encrypt`/`decrypt` or manual DH.
- `EVP_DigestSign` / `EVP_DigestVerify` (one-shot; confirm streaming support per OpenSSL release) with `NULL` digest for pure `ML-DSA` and `SLH-DSA` (which hash internally via SHAKE or SHA-2 per parameter set).
- Safe memory zeroization (`OPENSSL_cleanse` / `Zeroize`) of decapsulation keys and shared secrets.
How to evaluate in your environment
Run unit and integration tests exercising keygen, encapsulate/decapsulate, sign/verify, and negative tampered-ciphertext/signature cases under AddressSanitizer / Valgrind.
Production evidence to collect
Unit test suite pass log, SAST/Semgrep scan showing zero hardcoded classical primitives, and memory-sanitizer report.
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.