twenty_first::math::lattice::kem

Function enc

Source
pub fn enc(pk: PublicKey, randomness: [u8; 32]) -> ([u8; 32], Ciphertext)
Expand description

Encapsulate: generate a ciphertext and an associated shared symmetric key.