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

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

Trait for initializing a stream cipher from a block cipher

Associated Types

type BlockCipher: BlockCipher

Block cipher

type NonceSize: ArrayLength<u8>

Nonce size in bytes

Loading content...

Required methods

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

Instantiate a stream cipher from a block cipher

Loading content...

Implementors

Loading content...