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

ML-KEM-512 (FIPS-203 variant of CRYSTALS-Kyber) API. More...

#include <stddef.h>
#include <stdint.h>
#include "ocrypto_sha3.h"

Go to the source code of this file.

Macros

#define ocrypto_ml_kem512_SK_SIZE   ((2 * 384) + (2 * 384 + 32) + 64)
 
#define ocrypto_ml_kem512_PK_SIZE   (2 * 384 + 32)
 
#define ocrypto_ml_kem512_CT_SIZE   ((2 * 10 + 4) * 32)
 

Functions

void ocrypto_ml_kem512_key_pair (ocrypto_ml_kem512_ctx *ctx, uint8_t sk[((2 *384)+(2 *384+32)+64)], uint8_t pk[(2 *384+32)], const uint8_t d[32], const uint8_t z[32])
 
int ocrypto_ml_kem512_check_key (const uint8_t pk[(2 *384+32)])
 
void ocrypto_ml_kem512_encaps (ocrypto_ml_kem512_ctx *ctx, uint8_t key[32], uint8_t ct[((2 *10+4) *32)], const uint8_t pk[(2 *384+32)], const uint8_t m[32])
 
void ocrypto_ml_kem512_decaps (ocrypto_ml_kem512_ctx *ctx, uint8_t key[32], const uint8_t sk[((2 *384)+(2 *384+32)+64)], const uint8_t ct[((2 *10+4) *32)])
 

Detailed Description

ML-KEM-512 (FIPS-203 variant of CRYSTALS-Kyber) API.