Crate classic_mceliece_rust
source · [−]Expand description
This is a pure-rust safe-rust implementation of the Classic McEliece post-quantum scheme.
An example is provided to illustrate the API. Be aware that this documentation is generated for one specific variant (among ten). Thus the array lengths will be different if you specify a different variant via feature flags.
Structs
AesState is a struct storing data of a pseudo-random number generator.
Using randombytes_init
, it can be initialized once. Using randombytes
,
one can successively fetch new pseudo-random numbers.
Constants
The number of bytes required to store the shared secret negotiated between both parties
The number of bytes required to store the ciphertext resulting from the encryption
Name of the variant
The number of bytes required to store the public key
The number of bytes required to store the secret key
Traits
Trait requiring primitives to generate pseudo-random numbers.
AesState
is an object implementing this trait.
Functions
KEM Decapsulation.
KEM Encapsulation.
KEM Keypair generation.