Struct chacha20::ChaCha20Rng [−][src]
pub struct ChaCha20Rng(_);
This is supported on crate feature
rng
only.Random number generator over the ChaCha20 stream cipher.
Trait Implementations
impl CryptoRng for ChaCha20Rng
[src]
impl CryptoRng for ChaCha20Rng
[src]impl RngCore for ChaCha20Rng
[src]
impl RngCore for ChaCha20Rng
[src]impl SeedableRng for ChaCha20Rng
[src]
impl SeedableRng for ChaCha20Rng
[src]type Seed = [u8; 32]
Seed type, which is restricted to types mutably-dereferencable as u8
arrays (we recommend [u8; N]
for some N
). Read more
fn from_seed(seed: Self::Seed) -> Self
[src]
pub fn seed_from_u64(state: u64) -> Self
[src]
pub fn from_rng<R>(rng: R) -> Result<Self, Error> where
R: RngCore,
[src]
R: RngCore,
Auto Trait Implementations
impl RefUnwindSafe for ChaCha20Rng
impl RefUnwindSafe for ChaCha20Rng
impl Send for ChaCha20Rng
impl Send for ChaCha20Rng
impl Sync for ChaCha20Rng
impl Sync for ChaCha20Rng
impl Unpin for ChaCha20Rng
impl Unpin for ChaCha20Rng
impl UnwindSafe for ChaCha20Rng
impl UnwindSafe for ChaCha20Rng