[−][src]Trait stream_cipher::FromBlockCipher
This is supported on crate feature
block-cipher
only.Trait for initializing a stream cipher from a block cipher
Associated Types
type BlockCipher: BlockCipher
This is supported on crate feature
block-cipher
only.Block cipher
type NonceSize: ArrayLength<u8>
This is supported on crate feature
block-cipher
only.Nonce size in bytes
Required methods
fn from_block_cipher(
cipher: Self::BlockCipher,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
cipher: Self::BlockCipher,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
This is supported on crate feature
block-cipher
only.Instantiate a stream cipher from a block cipher