Trait c2_chacha::stream_cipher::FromBlockCipherMut

source ·
pub trait FromBlockCipherMut {
    type BlockCipher: BlockCipherMut;
    type NonceSize: ArrayLength<u8>;

    // Required method
    fn from_block_cipher_mut(
        cipher: Self::BlockCipher,
        nonce: &GenericArray<u8, Self::NonceSize>,
    ) -> Self;
}
Expand description

Trait for initializing a stream cipher from a mutable block cipher

Required Associated Types§

source

type BlockCipher: BlockCipherMut

Block cipher

source

type NonceSize: ArrayLength<u8>

Nonce size in bytes

Required Methods§

source

fn from_block_cipher_mut( cipher: Self::BlockCipher, nonce: &GenericArray<u8, Self::NonceSize>, ) -> Self

Instantiate a stream cipher from a block cipher

Object Safety§

This trait is not object safe.

Implementors§