Struct chacha20::ChaCha[][src]

pub struct ChaCha<R: Rounds, MC: MaxCounter> { /* fields omitted */ }

ChaCha family stream cipher, generic around a number of rounds.

Use the ChaCha8, ChaCha12, or ChaCha20 type aliases to select a specific number of rounds.

Generally ChaCha20 is preferred.

Trait Implementations

impl<R: Rounds, MC: MaxCounter> Debug for ChaCha<R, MC>[src]

impl<R: Rounds, MC: MaxCounter> NewCipher for ChaCha<R, MC>[src]

type KeySize = U32

Key size in bytes

type NonceSize = U12

Nonce size in bytes

impl<R: Rounds, MC: MaxCounter> StreamCipher for ChaCha<R, MC>[src]

impl<R: Rounds, MC: MaxCounter> StreamCipherSeek for ChaCha<R, MC>[src]

Auto Trait Implementations

impl<R, MC> RefUnwindSafe for ChaCha<R, MC> where
    MC: RefUnwindSafe,
    R: RefUnwindSafe

impl<R, MC> Send for ChaCha<R, MC> where
    MC: Send,
    R: Send

impl<R, MC> Sync for ChaCha<R, MC> where
    MC: Sync,
    R: Sync

impl<R, MC> Unpin for ChaCha<R, MC> where
    MC: Unpin,
    R: Unpin

impl<R, MC> UnwindSafe for ChaCha<R, MC> where
    MC: UnwindSafe,
    R: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.