Post Quantum Cryptography (PQC) Advice
This week, there is a lot of talk about PQC algorithms and migrating to these algorithms. Clients are asking about what to do and should they accelerate their timelines to earlier than finishing by 2030. In short, yes, there should be projects started for prioritizing PQC algorithms everywhere possible as systems are being updated and replaced. For any system that includes encryption, ask if it is PQC compliant now. Many vendors are saying they will be PQC compliant soon. This is not PQC compliant now. If soon, ask when. Ask for concrete deadlines.
CNSA 2.0 is The Answer
In the meanwhile, ignore the press and focus on CNSA 2.0. The Commercial National Security Algorithm Suite 2.0 (CNSA 2.0) was announced on 2022 with an 8 year deadline to be compliant by 2030. Technically, this only affects government systems, and those contractors selling into the government. However, it is sane advice and a pathway forward for everyone.
Wikipedia has a decent summary and table to help an organization along. The answer is:
- ML-KEM-1024 for key agreement
- AES-256 for symmetric encryption
- ML-DSA-87 for signatures
- SHA2-512 for message digests.
One can argue that the standard for message digests can be SHA2-384 and while technically correct, most processors can handle SHA2-512 with ease, even older ones. If you're operating at scale, you probably already modern processors.
What Can One Do Now?
For the typical company, you are dependent on your vendors and software build of materials (aka libraries). OpenSSL/LibreSSL should support the CNSA 2.0 choices now. OpenSSL 3.5 shipped with PQC algorithms by default. LibreSSL 4.1.0 includes PQC algorithms. OpenSSH enables PQC algorithms for key exchange. One can create a PQC host key now. However, -sk keys (tied to hardware) are still ECC-256 by protocol design. In OpenSSH 10.6, one can create the following key types (copied from the ssh-keygen man page):
ecdsa | ecdsa-sk | ed25519 | ed25519-sk | mldsa44-ed25519 | rsa
The astute reader will note that ML-DSA-44 is not CNSA 2.0 compliant; as compliance requires ML-DSA-87.
As TLS certification authorities update, and browsers update, and all the supporting tools update, we'll get to CNSA 2.0 compliance sooner rather than later.
What's the Risk?
The risk, as the NSA plainly states, is "store now, decrypt later". This means someone could be recording your encrypted traffic, files, etc now, so they can decrypt it all later when the non-PQC algorithms are broken. If your database, files, etc are encrypted with AES-256, they should be safe. If not, then time to update this encryption now. In fact, the time to do this was in 2022 when CNSA 2.0 was announced, but now is better than later.
The AES-NI instruction set has been in x86 processors since 2008 and ARM processors since 2011 or so.The instruction set includes AES-256 so your hardware can help accelerate the encryption to lessen the impact.
I could be wrong about all of this, so do your own research. I'm actively working on upgrading clients to CNSA 2.0 compliance. I've been doing so for years, but now I have the current hype behind me to make it more pertinent.