Function pqc_kyber::keypair

source ·
pub fn keypair<R>(rng: &mut R) -> Result<Keypair, KyberError>where
    R: RngCore + CryptoRng,
Expand description

Keypair generation with a provided RNG.

Example

let mut rng = rand::thread_rng();
let keys = keypair(&mut rng)?;