Structs§
- Ciphertext
Ciphertextstruct that can only be generated byencapsulate.- Private
Key PrivateKeystruct that can only be generated via thegenerate_keypair_512,generate_keypair_768, orgenerate_keypair_1024functions and is used todecapsulatea shared secret from a given ciphertext.- Public
Key PublicKeystruct that can only be generated via thegenerate_keypair_512,generate_keypair_768, orgenerate_keypair_1024functions or from the correspondingPrivateKeystruct using theget_public_keymethod and is used toencapsulatea shared secret.
Traits§
- Acceptable
Rng - Acceptable RNG to be used in encapsulation and key generation must have the
RngCoreandCryptoRngtraits.
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.