oxicrypto-core 0.1.0

Pure Rust cryptography trait surface (no_std + alloc)
Documentation
1
2
3
4
5
6
7
8
use crate::CryptoError;

/// Cryptographically-secure random number generator.
pub trait Rng: Send + Sync {
    /// Fill `dst` with cryptographically secure random bytes.
    #[must_use = "result must be checked"]
    fn fill(&mut self, dst: &mut [u8]) -> Result<(), CryptoError>;
}