kyber-rs 0.1.0-alpha.9

A toolbox of advanced cryptographic primitives for Rust
Documentation
1
2
3
4
5
6
7
8
9
use crate::cipher;

/// [`Random`] is a trait that can be mixed in to local suite definitions.
pub trait Random {
    /// [`random_stream()`] returns a [`cipher::Stream`] that produces a
    /// cryptographically random key stream. The stream must
    /// tolerate being used in multiple goroutines.
    fn random_stream(&self) -> Box<dyn cipher::Stream>;
}