← Back to section · Post-Quantum Migration

Stored-Data Format Compatibility: What Happens to Data Already Signed and Encrypted

Migration affects more than data in transit: archived signatures, encrypted backups and key-storage formats must stay readable across the algorithm transition. Test old data on new systems and new data on old ones, and the migration covers the whole asset base.

Published 22 November 2026 · 6 min read · PQ Frontier

Stored-Data Format Compatibility: What Happens to Data Already Signed and Encrypted
AI-generated site artwork
Video explainer · Compatibility Testing: Size, Performance, Interoperability

The half of the asset base migration discussions forget

Compatibility discussion usually stares at the link: does the handshake complete, does the chain verify. But half of an organisation’s cryptographic assets are at rest: years of signed documents in archives, encrypted snapshots on backup media, private-key files in key management systems, signed commits in code repositories. These data were written in classical-era formats and will be read in the post-quantum era — if new systems cannot parse the old formats, or new verification policy rejects old signatures wholesale, what is lost is the historical asset itself. Stored-data format compatibility is the testing done for that other half.

Per-format checks: the encoding support list

First list the storage encodings actually in use, and check each one’s support for the new algorithms:

  • Key material: the PKCS#8 private-key structure distinguishes algorithms by OID and is extensible in principle, but concrete tooling (key generation, import/export, HSM wrapping) supports ML-KEM/ML-DSA OIDs unevenly; PEM/DER encoding rules do not change — the risk sits in parser allowlists;
  • Certificate and signature containers: CMS, PAdES and similar containers reserve algorithm-identifier positions, but implementations often size buffers around classical signature lengths; SLH-DSA signatures of tens of thousands of bytes are the stress point;
  • Tokens and structured data: JWK kty values need new registrations, and JSON structures storing public keys in databases, if designed around classical fields, need room for the new algorithms’ parameter fields;
  • Backup and archive formats: if backup software’s encryption layer hard-codes its algorithm suite, only a real restore drill reveals that old and new versions no longer recognise each other — backup format compatibility must be verified by actual restore tests, not documents.

The output is a “format × algorithm” support matrix, maintained separately from the protocol-side compatibility matrix — the two have different change cadences and different owners.

Test both directions: old data on new systems, new data on old

Format compatibility runs in two directions. Old data on new systems: draw historical samples of every era and format (old signed documents, old backup sets, exported old keys) and verify on the new system that each parses, verifies and restores. Verification policy needs deliberate design — if the new system rejects classical signatures by default, archived documents fail in bulk; the correct approach is per-category policy: historical archives follow a “verify historical validity” path (the signature was valid in its era), while newly signed data follows post-quantum policy. New data on old systems: during gradual rollout, data produced by new systems may still be read by un-upgraded old ones (shared archives, cross-system exchange); test how old systems behave on new algorithm identifiers — an explicit error is acceptable, silent dropping or misreading is not.

Keeping long-term signatures alive

The special case in format compatibility is long-term signatures: contracts and records must remain verifiable for decades, while classical signature algorithms will fall in the quantum era. The answer is not re-signing everything at migration time (a signature’s temporal validity cannot be recreated) but evidence preservation: apply RFC 3161 timestamps and evidence records (RFC 4998) to the stock while the algorithms are still trusted, and consider sealing “document + original signature + timestamp” under an additional post-quantum signature layer. These actions have a time window — they must complete before the classical algorithms break — so in the migration plan they are not an appendix to compatibility testing but a work item with its own deadline. On the testing side, verify that the sealed evidence chains validate completely in the target verification tooling, and that the validation logic distinguishes two levels: “the signature itself is valid” and “the evidence chain proves it existed in a trusted era”.

The re-encryption decision for encrypted stock

Unlike signatures, the compatibility question for encrypted stock is “can it still be opened in the future”. If the keys protecting data at rest are wrapped by classical algorithms (data keys wrapped with RSA, for instance), that wrapping opens once the quantum era arrives and the data is effectively plaintext. There is exactly one remedy: re-encryption — re-wrapping the key layer under post-quantum or hybrid protection, usually without touching the data itself when volumes are large (the structural dividend of envelope encryption). Testing must verify three things: whether the inventory can precisely locate every dataset’s wrapping algorithm and key location (data whose key location is unknown cannot be re-encrypted); the re-encryption tooling’s correctness and interruption recovery on a sample set (a batch job failing halfway must not leave a half-new, half-old state nobody can tell apart); and backup rotation after re-encryption — old backups still hold old-wrapped copies, and the exposure window lasts exactly as long as the backup retention period, a decision to be made jointly with backup policy. Re-encryption priority follows data shelf life: data whose shelf life crosses the quantum-threat horizon goes first; short-lived data may simply be left to expire.

Key files themselves: the migration hand-off

One class of stored object sits in between: key files themselves. During migration, one logical key may change formats repeatedly (exported from a software key store, imported into an HSM, migrated from an old system to a new one), and every hand-off is a compatibility risk point: the export format’s support for new algorithm OIDs, the importing side’s parser allowlist, and how key material is protected in transit (whether the export file is encrypted, and to what standard its passphrase is held). The test is to walk the full chain and verify fingerprint equality — compare public-key fingerprints before and after the transfer; only matching fingerprints confirm the same key changed hands. Confirm one small thing especially: many tools, on meeting an unknown algorithm OID, do not error but silently skip the key entry; after migration, counting keys and reconciling the total is the cheapest completeness check available. Key-file migration failures are typically discovered latest (only when that key is needed and is not there), so its priority on the test list should exceed its frequency.

Closing: the format list joins the asset ledger

As with protocol compatibility, the results must settle into durable form: a format support matrix, bidirectional test records over historical samples, and an evidence-preservation progress table for long-term signatures — all three folded into the cryptographic asset ledger (the storage-side extension of the CBOM). At migration acceptance, only when both books — link and storage — reconcile can the whole asset base be called covered. Testing the link alone and declaring migration complete leaves half the assets behind in the old era.

Tags: Data FormatsLong-Term SignaturesKey StorageArchives