How to upgrade cryptographic libraries and dependencies

Finding every cryptographic library your applications load, upgrading them in a tested order, and dealing with dependencies that pin old versions, following the published NIST and CISA guidance.

On this page

How do you upgrade cryptographic libraries for post-quantum cryptography?

If you lead engineering or platform work, your task is to move applications off cryptographic libraries that cannot use post-quantum algorithms. The output is a dated register of libraries, each with a named owner and an upgrade record. The application and platform teams own the register and the upgrades, and the security lead owns the overall program and signs off on the register. Start by listing every library that performs key establishment or signing, then record its version, the application that loads it, and whether its current release offers any post-quantum algorithm.

This work is now on the agenda because NIST IR 8547, Transition to Post-Quantum Cryptography Standards, sets out how organizations should move from public-key algorithms that quantum computers could break to the post-quantum signature and key-establishment standards. NIST describes the report as identifying the existing standards to replace and the post-quantum standards that IT products will need to adopt. CISA's Product Categories for Technologies That Use Post-Quantum Cryptography Standards, published January 23, 2026, tells buyers how mature each product category is. Read both documents to decide which of your libraries fall into the categories you must act on first.

The sources listed on this page do not name specific library versions that add post-quantum algorithms, so do not assume that any release you run has them. Check each library's own release notes and documentation for the version you deploy, and record what you find in the register. Where a library has no post-quantum option, note it as a blocker and plan a replacement or a wrapper, since CISA notes that even after procurement a product may need to use non-PQC algorithms for a time for interoperability reasons. Record that interim dependency as a deliberate exception with an owner and a review date, not as a closed item.

What the published guidance asks for on libraries

This table lists what each published document asks of organizations on cryptographic libraries and the products that use them. Read each row as a separate document and check the section or action it names before planning work. Together the rows show that libraries must be inventoried, replaced with post-quantum standards as products adopt them, and checked against vendor and supply chain commitments.

DocumentSection or actionWhat it asks for
NIST IR 8547Transition approachIdentifies the existing public-key standards to replace and the post-quantum digital signature and key-establishment standards that IT products and services will need to adopt.
CISA product categoriesTables 2 and 3Sorts product categories by maturity: categories move from Table 3 (transitioning) to Table 2 (widely available) as they mature, and CISA updates these tables periodically.
CISA product categoriesInteroperability after procurementNotes that even after procurement, a product may need to keep using non-PQC algorithms for a time for interoperability reasons.
CISA, NSA and NIST quantum-readiness factsheetInventory and roadmapRecommends establishing a quantum-readiness roadmap and preparing a cryptographic inventory, which should cover the libraries an application depends on.
CISA, NSA and NIST quantum-readiness factsheetSupply chain and vendorsRecommends assessing the supply chain and engaging technology vendors about their post-quantum cryptography plans.

What the upgrade work should produce

Upgrading cryptographic libraries produces a set of linked records, one for each part of the work. Together they show which libraries exist, which applications depend on them, what was decided, what was tested, how to reverse a change, and what was actually done.

Library register

The library register lists every cryptographic library found in the cryptographic inventory, with the version in use, the vendor or project behind it, and where it runs. It is the starting point for the rest of the work, so each entry should trace back to an inventory record. Check that the register covers libraries bundled inside containers, vendored into source code and provided by the operating system, since these are the ones teams most often miss. NIST IR 8547 identifies the standards that existing products will need to replace, and the register shows which of those standards each library implements.

NIST IR 8547

Dependency map

The dependency map shows which applications and services pull in each library, directly or through another package. It answers the question of what breaks if a library changes, and it shows when two applications need different versions of the same library. Record the path for each dependency, such as a direct import, a transitive package or a base image layer, because the upgrade method differs for each. Vendor and supplier dependencies belong here too, since CISA recommends that organizations assess their supply chain as part of quantum readiness.

CISA Quantum-Readiness factsheet

Upgrade decision record

Each library gets an upgrade decision record that states the chosen target version, the reason for it, the options considered and the owner who approved the choice. The record should also state whether a non-post-quantum algorithm will remain in use for interoperability, which CISA notes can happen even after procurement. Keeping these decisions per library means a reviewer can see why a version was chosen months later. Confirm the target version against the product documentation before approving the record, because compatibility between versions is not always stated by the sources.

Test results per application

Test results record, for each application, what was run against the upgraded library and what happened. Include the compatibility checks, the handshake and connection tests where the library handles TLS, and the performance observations that matter to the service. Keep results tied to the exact library version and application build tested, so a later failure can be traced to the change that caused it. A pass on one application does not show that a shared library works in another, so each application needs its own entry.

Rollback plan

The rollback plan states how to return each application to its previous library version if the upgrade fails in production. It names the backup or image to restore, the steps and the person who can authorize the rollback. Rollback is only reliable if the previous version can still be obtained, so record where the earlier package or container image is stored. Test the plan on a non-production copy before the change window, because a rollback path that has never been run is often the first part to fail.

Dated change record

The dated change record logs each library change as it is made: the date, the application, the old and new versions, the person who made the change and the verification performed. It is the record that shows what the environment looked like at any point, and it feeds back into the library register so the inventory stays current. Keep entries in the order the changes happened, and note any change that was reversed. Auditors and internal reviewers will ask for this record first when they check that the migration was carried out as planned.

In what order should cryptographic libraries be upgraded?

The sequence moves from knowing where cryptographic libraries are used to upgrading them in a controlled way, so each change has an owner, a tested path and a record. Following the order keeps upgrades traceable and makes rollback possible if an update breaks a dependency.

  1. Start from the cryptographic inventory

    Begin with the cryptographic inventory, which lists where cryptography is used across applications, services and devices. Pull the entries that reference cryptographic libraries, including the library name, version and the system that loads it. The step is done when every application that uses a cryptographic library appears in the inventory with its library and version recorded. Gaps found here should be closed before any upgrade planning starts.

  2. Build the library register and dependency map

    Turn the inventory entries into a library register, one row per cryptographic library and version in use. Then map which applications depend on each library, including transitive dependencies that arrive through other packages. Engineering or platform teams usually own this work, with security reviewing the result. The output is a register and a dependency map that show which upgrades would touch which systems.

  3. Assign an owner to each library

    Give every library in the register a named owner who is accountable for its upgrade and its ongoing maintenance. The owner is usually the team that maintains the application, and for shared libraries it is the team that maintains the platform. Record the owner beside each row so that questions about a change have a clear answer. The step is complete when no library in the register lacks an owner.

  4. Classify libraries by vendor post-quantum support

    For each library, record whether the vendor or project has published post-quantum support, and in which version. Use the vendor's release notes and documentation as the source, and state the version the support applies to. Where no support is published, mark the library as unconfirmed and ask the vendor directly, as CISA's guidance on engaging technology vendors suggests. The output is a classification column in the register that separates libraries with confirmed support from those awaiting an answer.

  5. Test upgrades in a non-production environment

    Apply the planned library upgrade in a non-production environment that mirrors the production dependency set. Run the application's test suite and the cryptographic functions it depends on, such as TLS connections, signing and key generation. Confirm that dependent systems still start and communicate with their peers. The step is done when the test results are recorded and any failures are either fixed or logged as blockers for the owner to resolve.

  6. Roll out with rollback ready

    Deploy the tested upgrade to production in stages, keeping the previous library version and configuration available so the change can be reversed. Confirm that the rollback procedure works before the rollout begins, and name who decides to trigger it. Monitor the affected services during and after the change. The step is done when the upgrade is live, the rollback path has been confirmed, and the owner signs off that the service behaves as expected.

  7. Record each change

    Log every upgrade in the register with the date, the old and new versions, the owner, the test results and the rollback status. Update the cryptographic inventory so it reflects the library now in production. Keeping this record current lets later reviews confirm which systems have changed and which are still pending. The step is complete when the register and inventory match the production environment.

Who owns each part of the library upgrade?

The security lead owns the cryptographic register, which records every library, version and location where cryptography is used, and makes the risk decisions about which libraries are upgraded first and which must be isolated or accepted for a period. NIST IR 8547 identifies the existing standards to replace and the post-quantum standards that products will need to adopt, so the register is the reference point for deciding which dependencies fall within that scope. The security lead also decides how interoperability constraints are handled, since CISA notes that even after procurement a product may need to use non-PQC algorithms for a time for interoperability reasons.

  • Register ownership: Maintain the register of cryptographic libraries, versions and call sites, and approve every change to its scope.
  • Priority decisions: Rank upgrades by sensitivity of the data and systems involved, consistent with the prioritization NIST describes for sensitive systems.
  • Exception approvals: Sign off on any temporary use of non-PQC algorithms, with a recorded reason and an expiry date.
  • Residual risk acceptance: Approve the acceptance of risk for libraries that cannot be upgraded in the current window.
  • Reporting: Confirm the status of the register to leadership and to auditors on a regular schedule.

Before signing off on any exception, confirm the reason it exists and when it will be reviewed.

Which standards and documents name the work

Three documents set the frame for upgrading cryptographic libraries and dependencies. The first is NIST IR 8547, Transition to Post-Quantum Cryptography Standards. NIST describes it as the approach for moving from public-key algorithms that quantum computers could break to post-quantum digital signature and key-establishment standards, and as identifying the existing standards to replace and the post-quantum standards IT products and services will need to adopt. The NIST page lists it as final on 10/27/26, after an initial public draft dated 11/12/24. The report states that it supports Executive Order 14412 and OMB Memorandum M-26-15, which direct agencies to prioritize migrating their most sensitive systems. Read it as the reference for which algorithms a library should eventually offer, and confirm the final text on the NIST IR 8547 CSRC page.

The second is CISA's Product Categories for Technologies That Use Post-Quantum Cryptography Standards, published January 23, 2026, in response to Executive Order 14306. It sorts technologies into tables by maturity. CISA says it will update the tables periodically and move categories from Table 3 (transitioning) to Table 2 (widely available) as they mature. It also notes that even after procurement, a product may need to use non-PQC algorithms for a time for interoperability reasons. For a library upgrade, this means a dependency may ship post-quantum support while peers in your stack still need classical algorithms, so plan for hybrid operation. See the CISA product categories document.

The third is the joint CISA, NSA and NIST factsheet Quantum-Readiness: Migration to Post-Quantum Cryptography, published August 21, 2023. It recommends building a cryptographic inventory, assessing the supply chain, and engaging technology vendors about post-quantum cryptography, which is where library and dependency upgrades start. The sources listed on this page do not name specific libraries, versions or dependency tooling. Confirm the library names, the versions that add post-quantum algorithms, and any compatibility notes against each vendor's documentation and your own test results. The CISA factsheet is the next read.

How a library upgrade moves from register to rollout

The path starts at the cryptographic inventory, which feeds a library register that records each cryptographic library and its version. A dependency map then shows which applications call each library, including transitive dependencies. Each library is classified by whether its vendor or project has published post-quantum support, and that classification decides the route. Supported libraries go to a test environment and then rollout, while unsupported ones go to a recorded exception path. Every change ends in a recorded change entry, so the register and the change record stay in step.

Library upgrade path from inventory to recorded change.

What goes wrong when dependencies pin old library versions?

Upgrading cryptographic libraries is rarely a single change in one place. The risks below come from how libraries are pulled into applications, which algorithms are kept for compatibility, and how upgrades are reversed when they fail. Each card names the problem and a concrete way to notice it before it blocks a migration.

Transitive dependencies pin old versions

A direct dependency may be current while one of its own dependencies pins an older cryptographic library, so the upgrade you ship never reaches the code that does the cryptography. Lock files and dependency trees often hide this, because the pinned version is resolved several levels down. To notice it, list the full resolved tree for each application and search for every cryptographic library by name and version, not only the packages you declared. If a newer release exists upstream but the resolved version stays old, the pin is blocking the upgrade and the owner of the parent package has to be engaged.

Non-PQC algorithms kept for interoperability

CISA's product categories document notes that a product may need to keep using non-PQC algorithms for a time after procurement, for interoperability reasons. A system can therefore pass a purchase review and still negotiate classical key exchange or signatures with partners that have not upgraded. This is a normal state during transition, but it can quietly keep the weaker options enabled everywhere. To notice it, record which algorithms each endpoint offers and accepts, identify the peers that require the classical option, and keep a dated list of why each one stays on.

CISA product categories

Libraries hidden inside bundled software

Many products ship their own copy of a cryptographic library inside a container image, an installer or a vendor package, so the library never appears in your own dependency manifests. Updating the operating system or your application packages leaves that copy unchanged. Teams often miss these copies during inventory and only find them when a scan of installed files or image layers is run. To notice them, scan container images and installed binaries for cryptographic library files, not only package manager records, and compare the versions found against what the vendor says each release contains.

Upgrades without a tested rollback

A library upgrade can change handshake behavior, certificate parsing or default settings, and a failure may appear only under production load or with specific clients. When no rollback has been tested, a fix can turn into an outage with no fast way back. CISA, NSA and NIST guidance on migration stresses planning and verification as part of the migration itself. To notice this gap, check whether each upgrade has a written rollback procedure, whether that procedure was run in a test environment with the previous package restored, and whether the owner knows how long a revert takes.

CISA quantum-readiness factsheet

What to record so an auditor or customer review can see the upgrades were done

The records for a cryptographic library upgrade should show what was running, what changed, who decided it, and whether it worked, all with dates. Keep a dated library register that lists each cryptographic library, its version before and after the upgrade, the host or application that loads it, and the date of each change. Pair it with a dependency map that shows which applications pull in which libraries, directly or through a transitive dependency, so the register can be checked against what is actually deployed. Without the map, a reviewer cannot tell whether a library was missed. The security lead uses these records to report progress, so they should be kept in a form that can be exported without rework, such as a versioned spreadsheet, a configuration management database, or a repository with dated commits.

Each upgrade needs a decision record that names the owner, the reason for the change, the target version, and the approver. Record the test results that support the decision, including which compatibility and interoperability tests ran, the environment used, and the outcome. Add a rollback plan for each change that states the previous version, where its package or artifact is stored, and the steps and owner for reverting it. CISA notes that a product may need to keep using non-post-quantum algorithms for a time for interoperability, so record any such fallback and why it is kept. Confirm with the vendor or project which compatibility claims apply to the versions you run, and file their written answers with the decision.

Exceptions need their own entries: each system that cannot be upgraded on schedule, each deferred change, and each accepted risk, with the approver, the expiry date, and the compensating controls. Review the exceptions list at a set interval so stale items are closed or re-approved. The independent auditor decides whether this evidence is sufficient, so ask the auditor early which formats and retention periods they expect rather than assuming. Customer reviews may ask for the same material in a different layout, so keep one source of truth and produce summaries from it.

Checklist to confirm before a library upgrade goes live

Does the register cover every application that uses a cryptographic library?

Confirm that the cryptographic inventory lists every application that calls a cryptographic library, including internal tools, batch jobs and third-party services you run yourself. A library upgrade is only as complete as the register behind it, so a missing application is an upgrade that will never be tested or rolled back. Check each entry against the library name, the version in use and the deployment location. Record any application you could not confirm, and hold the upgrade for that application until its entry is complete. The register is the input to every later check, so treat gaps here as blockers rather than notes.

Does every cryptographic library have a named owner?

Each library in the register should name one accountable owner, a person or team who approves the upgrade and answers for its behavior in production. Without a single owner, upgrade decisions drift between development, platform and security teams, and nobody signs off on the interoperability trade-offs. Record the owner's name, the team and the escalation contact next to each library. If a library is shared across several applications, the owner should still be one person, with the consuming teams listed as stakeholders who must be notified before go-live.

Have all dependency pins been identified before the upgrade?

Before changing any version, list every place a version is pinned: lock files, container base images, vendored copies, package manager constraints and build configuration. A pin that is not found will silently keep the old library in place, which means the upgrade appears complete while the old code still runs. For each pin, record the file path, the pinned version, and whether the pin is direct or inherited from another dependency. Confirm that the upgraded version resolves everywhere the library is used, and check the resolved version in the built artifact, not only in the source file.

Has the upgrade passed a non-production test?

Run the upgraded library in a non-production environment that matches production closely enough to expose the failures you care about. Test the functions that perform key exchange, signing and certificate handling, along with the application's normal request paths. Record the environment, the library version, the test cases run and their results. Include negative tests, such as connections from clients that do not support the new algorithm, because those are where interoperability problems appear. A test that passed only on the happy path does not satisfy this check.

Is the rollback documented and has it been tested?

Write down the exact steps to return each affected application to the previous library version, including the pin changes, rebuilds, configuration restores and any service restarts. Then test those steps in the non-production environment and record that the rollback worked and how long it took. A rollback that has never been run is an assumption. Confirm that the previous library artifact is still available to deploy, because a rollback that depends on a deleted image or an expired package is not a rollback.

Are interoperability exceptions approved and dated?

Some systems may need to keep older algorithms for a period because a partner, client or device cannot yet negotiate the newer ones. CISA's product categories document notes that even after procurement a product may need to use non-post-quantum algorithms for a time for interoperability reasons, so expect some exceptions. For each one, record the affected system, the algorithm kept, the reason, the approver, the approval date and a review date. An exception without an approver or an expiry date becomes permanent without anyone deciding that it should be. Keep the exception list with the register so it is reviewed with the inventory.

Has the change been recorded in the change management system?

Record each library upgrade in your change management system with the library name, the old and new versions, the affected applications, the owner, the test evidence, the rollback procedure and the approval. Link the record to the register entries it changes, so the inventory reflects the new version after go-live. A change that is not recorded cannot be audited, and it leaves the inventory out of date the next time someone plans work from it. Confirm that the record is closed only after the post-change update to the register is complete.

How DeployOpen works on this

DeployOpen works on library upgrades in four steps: scope, build, hand over and support. Each engagement is fixed-scope, with the systems, libraries and deliverables agreed in writing before any work starts, and ongoing support is available as a retainer.

How we scope

  • The written scope lists which applications, services and hosts are in the upgrade, drawn from your cryptographic inventory.
  • We confirm which cryptographic libraries and language runtimes each system uses, and which are pinned to older versions.
  • The scope names the dependency chains we will review and records any systems excluded, with the reason for each exclusion.

How we build

  • We update libraries and dependencies in a test environment first, then check that builds, tests and interoperability still pass.
  • Where a dependency pins an old cryptographic library, we document the conflict and propose a tested path, such as a newer version or a replacement.
  • We keep configuration changes tracked in version control, so each change can be reviewed, reproduced and reversed if needed.

How we hand over

  • You receive a record of each library and version changed, with the systems it affects and the test results that confirm them.
  • The handover includes rollback steps for each change, written so your own engineers can follow them without our help.
  • We list open items, such as components that cannot be upgraded yet, with their owners and the next review date.

How we support

  • Ongoing support is available as a retainer for upgrades, dependency updates and retesting as libraries and standards change.
  • We can retest affected systems after later library releases, so you can confirm that earlier changes still hold.
  • Confirm with your team which library versions your vendors support before any change, since compatibility depends on the exact version you run.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.