Function pqc_kyber::keypair[][src]

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

Keypair generation with a provided RNG.

Example

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