Module kem

Module kem 

Source

Structs§

Ciphertext
Ciphertext struct that can only be generated by encapsulate.
PrivateKey
PrivateKey struct that can only be generated via the generate_keypair_512, generate_keypair_768, or generate_keypair_1024 functions and is used to decapsulate a shared secret from a given ciphertext.
PublicKey
PublicKey struct that can only be generated via the generate_keypair_512, generate_keypair_768, or generate_keypair_1024 functions or from the corresponding PrivateKey struct using the get_public_key method and is used to encapsulate a shared secret.

Traits§

AcceptableRng
Acceptable RNG to be used in encapsulation and key generation must have the RngCore and CryptoRng traits.

Functions§

generate_keypair_512
Generates a new keypair for the 512 Security Parameters.
generate_keypair_768
Generates a new keypair for the 768 Security Parameters.
generate_keypair_1024
Generates a new keypair for the 1024 Security Parameters.