Function classic_mceliece_rust::keypair
source · [−]pub fn keypair<'public, 'secret, R: CryptoRng + RngCore>(
public_key_buf: &'public mut [u8; 261120],
secret_key_buf: &'secret mut [u8; 6492],
rng: &mut R
) -> (PublicKey<'public>, SecretKey<'secret>)
Expand description
KEM Keypair generation.
Generate a public and secret key. The public key is meant to be shared with any party, but access to the secret key must be limited to the generating party.