Trait cipher::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; }

Trait for types which can be initialized from a block cipher and nonce.

Associated Types

type BlockCipher: BlockCipher[src]

Block cipher

type NonceSize: ArrayLength<u8>[src]

Nonce size in bytes

Loading content...

Required methods

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

Instantiate a stream cipher from a block cipher

Loading content...

Implementors

Loading content...