[][src]Struct c2_chacha::guts::ChaCha

pub struct ChaCha { /* fields omitted */ }

Methods

impl ChaCha[src]

pub fn new(key: &[u8; 32], nonce: &[u8]) -> Self[src]

pub fn refill4(&mut self, drounds: u32, out: &mut [u8; 256])[src]

Produce 4 blocks of output, advancing the state

pub fn refill(&mut self, drounds: u32, out: &mut [u8; 64])[src]

Produce a block of output, advancing the state

pub fn set_stream_param(&mut self, param: u32, value: u64)[src]

pub fn get_stream_param(&self, param: u32) -> u64[src]

Trait Implementations

impl Clone for ChaCha[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for ChaCha

impl Sync for ChaCha

impl Send for ChaCha

impl UnwindSafe for ChaCha

impl RefUnwindSafe for ChaCha

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]