pqc_kyber 0.2.1

A rust implementation of the post-quantum Kyber KEM algorithm
Documentation
1
2
3
4
5
6
7
8
9
10
#![cfg(not(feature="KATs"))]
use rand_core::*;

// Fills buffer x with len bytes, RNG must satisfy the 
// RngCore trait and CryptoRng marker trait requirements
pub fn randombytes<R>(x: &mut [u8], len: usize, rng: &mut R)
  where R: RngCore + CryptoRng,
{
  rng.fill_bytes(&mut x[..len]);
}