Skip to main content

Module params

Module params 

Source
Expand description

NIST FIPS 203 (ML-KEM) parameter constants (Table 2).

Modules§

ml_kem_512
ML-KEM-512 parameter constants (NIST Security Category 1).
ml_kem_768
ML-KEM-768 parameter constants (NIST Security Category 3).
ml_kem_1024
ML-KEM-1024 parameter constants (NIST Security Category 5).

Constants§

N
Polynomial degree n = 256 in R_q = Z_q[X] / (X^256 + 1).
POLY_BYTES
Encoded byte length of a single polynomial with 12-bit coefficients (384 bytes).
Q
Prime modulus q = 3329 = 2^8 * 13 + 1.
Q_U32
Prime modulus as u32.
SEED_LEN
Random seed byte length (d, z, m, rho, sigma are all 32 bytes).
SHARED_SECRET_LEN
Shared secret byte length (32 bytes across all ML-KEM parameter sets).