Trait cipher::stream::FromBlockCipherMut
source · [−]pub trait FromBlockCipherMut {
type BlockCipher: BlockCipherMut;
type NonceSize: ArrayLength<u8>;
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
Associated Types
Block cipher
type NonceSize: ArrayLength<u8>
type NonceSize: ArrayLength<u8>
Nonce size in bytes
Required methods
fn from_block_cipher_mut(
cipher: Self::BlockCipher,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
fn from_block_cipher_mut(
cipher: Self::BlockCipher,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
Instantiate a stream cipher from a block cipher