nrfxlib API 3.3.99
Loading...
Searching...
No Matches

ML-KEM-1024 key encapsulation algorithm based on NIST PQC standard. More...

Files

file  ocrypto_ml_kem1024.h
 ML-KEM-1024 (FIPS-203 variant of CRYSTALS-Kyber) API.
 

Macros

#define ocrypto_ml_kem1024_SK_SIZE   ((4 * 384) + (4 * 384 + 32) + 64)
 
#define ocrypto_ml_kem1024_PK_SIZE   (4 * 384 + 32)
 
#define ocrypto_ml_kem1024_CT_SIZE   ((4 * 11 + 5) * 32)
 

Functions

void ocrypto_ml_kem1024_key_pair (ocrypto_ml_kem1024_ctx *ctx, uint8_t sk[((4 *384)+(4 *384+32)+64)], uint8_t pk[(4 *384+32)], const uint8_t d[32], const uint8_t z[32])
 
int ocrypto_ml_kem1024_check_key (const uint8_t pk[(4 *384+32)])
 
void ocrypto_ml_kem1024_encaps (ocrypto_ml_kem1024_ctx *ctx, uint8_t key[32], uint8_t ct[((4 *11+5) *32)], const uint8_t pk[(4 *384+32)], const uint8_t m[32])
 
void ocrypto_ml_kem1024_decaps (ocrypto_ml_kem1024_ctx *ctx, uint8_t key[32], const uint8_t sk[((4 *384)+(4 *384+32)+64)], const uint8_t ct[((4 *11+5) *32)])
 

Detailed Description

ML-KEM-1024 key encapsulation algorithm based on NIST PQC standard.

ML-KEM-1024 is a specific implementation of CRYSTALS-Kyber, a post-quantum key encapsulation mechanism. It is based on learning with errors (LWE) and is designed to be resistant against quantum attacks.

See also
FIPS - Module-Lattice-Based Key-Encapsulation Mechanism Standard