Making existing software quantum safe: a case study on IBM Db2
Case study upgrading IBM Db2 authentication and TLS to Kyber and Dilithium, validating a 7E software roadmap for quantum-safe migration with lessons learned.
Schemes: Kyber, Dilithium, TLS 1.3, Diffie-Hellman, RSA, 7E roadmap
Findings (quotes checked against the source text)
-
Db2 authentication key exchange was migrated from DH to Kyber KEM, and TLS signatures from RSA to Dilithium, via GSKit.
We choose Dilithium [59], also part of CRYSTALS, as our new digital signature scheme.
-
Average Db2 connection response time with Kyber was statistically indistinguishable from DH in the authors' testbed, even slightly lower.
the average response time even decreases by 0.635% after we migrate from DH to Kyber
-
Crypto-agility was achieved only partly; hard-coded key lengths and fixed key sizes caused technical debt that had to be addressed.
We achieve crypto-agility to a certain degree by replacing fixed key size with dynamic key size in our case study.
-
The project underestimated the time needed by about 50% due to the challenges encountered.
we still underestimated the time needed to complete it by about 50% due to the challenges discussed in Section 7.
-
A full Db2 build from scratch takes about two to three hours on the test bed, a practical maintenance barrier.
a complete build (i.e., recompiling the whole codebase from scratch) for Db2 takes about two to three hours on our test bed.
Numbers (as extracted, not quote-checked)
- Kyber average response time (Db2 connect, n=1000): 162.514 ms (SD 15.281 ms)
- DH average response time (Db2 connect, n=1000): 163.552 ms (SD 12.222 ms)
- Full Db2 build time: two to three hours
For builders
Treat the Kyber/Dilithium-over-TLS result as a latency data point for a KEM handshake, and plan crypto-agility and fixed key-size removal before any migration.
Limits
Single enterprise product case study, not a blockchain; the performance test is one client-server connection on one testbed with no PQ size or bandwidth figures; NIST standards were not yet final.
Topics: kem sig-lattice standards-policy implementation-sidechannel benchmarks other-chain-migration