Frodokem1344shake
A conservative unstructured-LWE KEM at the highest security level, using SHAKE for expansion
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Frodokem1344shake
Frodokem1344shake is a key encapsulation mechanism from the FrodoKEM-1344-SHAKE family. It uses a 21,520-byte public key, a 43,088-byte secret key, a 21,632-byte ciphertext and a 32-byte shared secret. It is designed to resist attacks by large quantum computers. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
FrodoKEM-1344-SHAKE is a key encapsulation mechanism based on plain, unstructured Learning With Errors, at the highest security level in the Frodo family. It uses SHAKE for matrix generation. Its public key is about 21 KB, and NextSSL carries it as an unverified entry.
FrodoKEM is a key encapsulation mechanism based on the unstructured Learning With Errors problem, with no ring or module structure in the public matrix. The design was submitted to NIST by a team including Joppe Bos, Craig Costello and Léo Ducas, and it is intended as a conservative choice that does not rely on the extra structure that ring and module schemes use.
NextSSL carries the 1344 parameter set with SHAKE expansion. Its public key is 21520 bytes, its secret key 43088 bytes and its ciphertext 21632 bytes, with a 32-byte shared secret. These are large compared with module-lattice schemes, which is the price of avoiding structure.
The archive tier is unverified. Frodo's large sizes make it a good comparison point for the conservative end of the lattice KEM spectrum rather than a general-purpose choice.
History
2016–2017Frodo key exchange presented at ACM CCS
FrodoKEM submitted to NIST PQC
How it works
- A public matrix is generated from a seed using SHAKE, and the public key is a noisy product of that matrix and a small secret.
- Encapsulation encrypts a random message under the public key, with noise sampled from a table-based distribution.
- Decapsulation re-encrypts and compares the ciphertext, returning a pseudorandom key on mismatch.
Security notes
Unverified in NextSSL. Table-based noise sampling must be implemented in constant time to avoid side-channel leaks. Its large keys and ciphertexts are the main practical cost.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 21,520 | Public key |
| sk | 43,088 | Secret key |
| ct | 21,632 | Ciphertext |
| ss | 32 | Shared secret |
| seed | 0 | Seed |
| coins | 0 | Encapsulation randomness |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
pk, sk = root.call("kem_keygen", "frodokem1344shake", None, outs=2)
ct, ss = root.call("kem_encaps", "frodokem1344shake", None, pk, outs=2)
assert ss == root.call("kem_decaps", "frodokem1344shake", None, sk, ct)[0]
nextssl_root_kem_keygen("frodokem1344shake", NULL, pk, sk);
nextssl_root_kem_encaps("frodokem1344shake", NULL, pk, ct, ss);
nextssl_root_kem_decaps("frodokem1344shake", NULL, sk, ct, ss);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_kem_in(reg::all(), Policy::Any, "frodokem1344shake", &Params::new())?;
let (pk, sk) = alg.keygen(&mut *rng)?;
let (ct, ss) = alg.encaps(&pk, &mut *rng)?;
assert_eq!(ss, alg.decaps(&sk, &ct)?);
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
More key encapsulation
All 110Frequently asked questions
What is Frodokem1344shake?
Frodokem1344shake is a KEM in the FrodoKEM-1344-SHAKE family. FrodoKEM-1344-SHAKE is a key encapsulation mechanism based on plain, unstructured Learning With Errors, at the highest security level in the Frodo family.
What are the Frodokem1344shake sizes?
In NextSSL, Frodokem1344shake uses: public key 21,520 bytes, ciphertext 21,632 bytes, shared secret 32 bytes.
Is Frodokem1344shake post-quantum?
Yes. Frodokem1344shake is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Frodokem1344shake and when?
Frodokem1344shake belongs to the FrodoKEM-1344-SHAKE family, first published in 2016 by Joppe Bos, Craig Costello, Léo Ducas, Ilya Mironov, Michael Naehrig, Valeria Nikolaenko, Ananth Raghunathan, Douglas Stebila.
Is Frodokem1344shake safe to use?
Frodokem1344shake is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
Related families
Code-based KEM on binary Goppa codes: very large public keys, tiny ciphertexts
HQCHamming Quasi-Cyclic: a code-based KEM chosen by NIST as a backup to ML-KEM
Kyber-1024The pre-standard Kyber-1024 parameter set, a category 5 Module-LWE KEM before FIPS 203
ML-KEMNIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
NTRU Round 2The round-2 NTRU KEM family, with HPS and HRSS parameter sets for 509 to 4096 dimensions