Skip to main content

Module mlkem

Module mlkem 

Source
Expand description

There are no advanced features in this low memory crate that are not already documented in the standard [bouncycastle_mlkem] crate.

Structs§

MLKEM
The core internal implementation of the ML-KEM algorithm. This needs to be public for the compiler to be able to find it, but you shouldn’t ever need to use this directly. Please use the named public types.

Constants§

MLKEM512_CT_LEN
Length of the [u8] holding a ML-KEM-512 ciphertext.
MLKEM512_FULL_SK_LEN
Length of the [u8] holding a full ML-KEM-512 private key in the NIST encoding.
MLKEM512_PK_LEN
Length of the [u8] holding a ML-KEM-512 public key.
MLKEM512_SK_LEN
Length of the [u8] holding a ML-KEM-512 seed-based private key.
MLKEM768_CT_LEN
Length of the [u8] holding a ML-KEM-768 ciphertext.
MLKEM768_FULL_SK_LEN
Length of the [u8] holding a full ML-KEM-768 private key in the NIST encoding.
MLKEM768_PK_LEN
Length of the [u8] holding a ML-KEM-768 public key.
MLKEM768_SK_LEN
Length of the [u8] holding a ML-KEM-768 seed-based private key.
MLKEM1024_CT_LEN
Length of the [u8] holding a ML-KEM-1024 ciphertext.
MLKEM1024_FULL_SK_LEN
Length of the [u8] holding a full ML-KEM-512 private key in the NIST encoding.
MLKEM1024_PK_LEN
Length of the [u8] holding a ML-KEM-1024 public key.
MLKEM1024_SK_LEN
Length of the [u8] holding a ML-KEM-512 seed-based private key.
MLKEM_RND_LEN
Length of the [u8] holding an ML-KEM encaps random value, also sometimes called the message m
MLKEM_SEED_LEN
Length of the [u8] holding an ML-KEM seed value.
MLKEM_SS_LEN
Size of in bytes of an ML-KEM shared secret key.
ML_KEM_512_NAME
ML_KEM_768_NAME
ML_KEM_1024_NAME

Traits§

MLKEMTrait
Trait for all three of the ML-DSA algorithm variants.

Type Aliases§

MLKEM512
The ML-KEM-512 algorithm.
MLKEM768
The ML-KEM-768 algorithm.
MLKEM1024
The ML-KEM-1024 algorithm.