Trait cipher::stream::FromBlockCipher[][src]

pub trait FromBlockCipher {
    type BlockCipher: BlockCipher;
    type NonceSize: ArrayLength<u8>;
    fn from_block_cipher(
        cipher: Self::BlockCipher,
        nonce: &GenericArray<u8, Self::NonceSize>
    ) -> Self; }
Expand description

Trait for initializing a stream cipher from a block cipher

Associated Types

Block cipher

Nonce size in bytes

Required methods

Instantiate a stream cipher from a block cipher

Implementors