The Qey: Implementation and performance study of post quantum cryptography in FIDO2
Builds and benchmarks a Raspberry Pi Zero 2W USB security key running ML-DSA-44/65 for FIDO2/CTAP, with ES256 fallback, versus classical signing.
Schemes: ML-DSA, ML-DSA-44, ML-DSA-65, ES256, FIDO2, CTAP, WebAuthn, Dilithium
Findings (quotes checked against the source text)
-
ML-DSA signing on the prototype was only about 10 ms slower than ES256 on average, which the authors judge acceptable for authentication.
it was discovered that the ML-DSA was slower on the order of 10000 micro seconds or by 10 milliseconds only.
-
Authentication averaged 17800.6 microseconds for ML-DSA-44 versus 3192.7 for ES256 on the Pi Zero 2W.
Authentication ML-DSA-44 17800.6
-
The prototype uses ML-DSA-44 as the suggested algorithm and ML-DSA-65 as the slower option, with ES256 kept as a legacy fallback.
The Qey supports the algorithms ML-DSA-44, ML-DSA-65 for Post Quantum and ES256 as a legacy fallback for backward compatibility of Relying parties that do not support ML-DSA yet.
-
No PQC secure storage exists in the prototype, so secrets sit on an SD card and a physically present attacker can extract them.
However, due to the current lack of technology, the Qey is vulnerable to attacks whether the attacker may physically get hands on the key.
-
IANA has not assigned COSE identifiers for ML-DSA, so the prototype assumes the IETF draft's proposed values -48, -49, -50 will be accepted.
For the current prototype of The Qey, it has been assumed that these assignments will be accepted by IANA in future.
Numbers (as extracted, not quote-checked)
- ML-DSA-44 public key size: 1312 bytes
- ML-DSA-44 signature size: 2420 bytes
- ML-DSA-65 public key size: 1952 bytes
- ML-DSA-65 signature size: 2560 bytes
- ML-DSA-44 registration time: 36069.2 microseconds
For builders
Lattice signing at ML-DSA-44 is roughly feasible on a cheap ARM board in software, but the paper's key-storage and COSE-registration gaps mean a chain would still need hardware-backed key storage.
Limits
Single prototype on one Pi Zero 2W with 30+ samples; no security proof, no side-channel testing, and the attack analysis is qualitative only.
Topics: sig-lattice wallets-keys implementation-sidechannel benchmarks standards-policy