Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
Macros
Common ML-KEM Parameters (FIPS 203)

Macros

#define MLKEM_N   256U
 
#define MLKEM_Q   3329
 
#define MLKEM_Q_HALF   1665
 
#define MLKEM_SYMBYTES   32U
 
#define MLKEM_SSBYTES   32U
 
#define MLKEM_POLYBYTES   384U
 
#define MLKEM_POLYCOMPRESSEDBYTES_D10   320U
 
#define MLKEM_POLYCOMPRESSEDBYTES_D11   352U
 
#define MLKEM_NUM_PARAM_SETS   3U
 

Detailed Description

Macro Definition Documentation

◆ MLKEM_N

#define MLKEM_N   256U

Number of coefficients per polynomial.

Definition at line 35 of file lcx_mlkem.h.

◆ MLKEM_NUM_PARAM_SETS

#define MLKEM_NUM_PARAM_SETS   3U

Number of supported ML-KEM parameter sets.

Definition at line 45 of file lcx_mlkem.h.

◆ MLKEM_POLYBYTES

#define MLKEM_POLYBYTES   384U

Serialized polynomial size: 12 * N / 8 (bytes).

Definition at line 40 of file lcx_mlkem.h.

◆ MLKEM_POLYCOMPRESSEDBYTES_D10

#define MLKEM_POLYCOMPRESSEDBYTES_D10   320U

Compressed polynomial size for du=10 (bytes).

Definition at line 42 of file lcx_mlkem.h.

◆ MLKEM_POLYCOMPRESSEDBYTES_D11

#define MLKEM_POLYCOMPRESSEDBYTES_D11   352U

Compressed polynomial size for du=11 (bytes).

Definition at line 43 of file lcx_mlkem.h.

◆ MLKEM_Q

#define MLKEM_Q   3329

Modulus q.

Definition at line 36 of file lcx_mlkem.h.

◆ MLKEM_Q_HALF

#define MLKEM_Q_HALF   1665

(q + 1) / 2, used for message encoding.

Definition at line 37 of file lcx_mlkem.h.

◆ MLKEM_SSBYTES

#define MLKEM_SSBYTES   32U

Size of the shared secret (bytes).

Definition at line 39 of file lcx_mlkem.h.

◆ MLKEM_SYMBYTES

#define MLKEM_SYMBYTES   32U

Size of seeds, hashes, and shared secrets (bytes).

Definition at line 38 of file lcx_mlkem.h.