The problem
A licence, an evidence record or a software attestation may have to be verified ten years after it was signed. Over that time algorithms are weakened, standards are revised and libraries change. The post-quantum signature standards are new, and it would be careless to assume that none of them will ever need to be replaced.
A system that names its algorithm in code cannot change it without a release, and usually cannot say what happens to the records it signed before the change. Cryptographic agility is the ability to change algorithms as a decision, with known consequences for old and new records.
Three parts
The QuantumLock agility layer separates three things that are often mixed together.
- A registry of algorithms: the fixed list of algorithm names the product knows, each with its standard, its sizes and a status such as production or candidate. A name outside the list is refused, including pre-standard names of the same algorithm.
- Providers: the libraries that compute the cryptography. Each signature records which library and which version produced it, so a later finding against one library can be traced to the records it touched.
- Policy: a versioned document that states which algorithms are accepted for which purpose. Changing the policy is a recorded decision, not a code change, and earlier versions are kept.
Design goals
The layer was held to four goals. Each one is covered by automated tests.
- No silent downgrade: when a policy asks for more than one signature on a record, a record with fewer is refused. The system does not fall back to the signature that happens to be available.
- Old records stay explainable: a policy change does not silently invalidate records signed before it, and does not silently bless them either. The verdict on an old record can be explained from the policy history.
- No guessing: an unknown algorithm name, an unknown provider or a library other than the one named is a refusal, not a best effort.
- Evidence before acceptance: an algorithm is first registered as a candidate and tested against the known answers its standard publishes. Moving it to production use is a separate, deliberate decision.
Status and limits
The layer is implemented and covered by 129 automated tests. It is present in the production build, and no product surface signs or verifies through it yet: licences and evidence records still use their earlier signing paths. Adoption by each surface is planned work.
ML-DSA is the post-quantum signature algorithm in use. SLH-DSA, a hash-based alternative with a different security assumption, is registered as a candidate and under evaluation. QuantumLock holds no FIPS 140-3 module validation, and tests against published vectors are not a validation.