lib3h_crypto_api 0.0.3-alpha1

lib3h abstract cryptography traits and data types
Documentation
1
2
3
4
5
6
7
use crate::{Buffer, CryptoResult};

/// Provides functions dealing with cryptographic randomness
pub trait CryptoRandom {
    /// Fill the output buffer with cryptographicly secure random bytes
    fn randombytes_buf<OutputBuffer: Buffer>(buffer: &mut OutputBuffer) -> CryptoResult<()>;
}