Struct chacha20::ChaCha12Rng [−][src]
pub struct ChaCha12Rng(_);
This is supported on crate feature
rng
only.Random number generator over the ChaCha12 stream cipher.
Trait Implementations
impl CryptoRng for ChaCha12Rng
[src]
impl CryptoRng for ChaCha12Rng
[src]impl RngCore for ChaCha12Rng
[src]
impl RngCore for ChaCha12Rng
[src]impl SeedableRng for ChaCha12Rng
[src]
impl SeedableRng for ChaCha12Rng
[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 ChaCha12Rng
impl RefUnwindSafe for ChaCha12Rng
impl Send for ChaCha12Rng
impl Send for ChaCha12Rng
impl Sync for ChaCha12Rng
impl Sync for ChaCha12Rng
impl Unpin for ChaCha12Rng
impl Unpin for ChaCha12Rng
impl UnwindSafe for ChaCha12Rng
impl UnwindSafe for ChaCha12Rng