[−][src]Trait stream_cipher::NewStreamCipher
Stream cipher creation trait.
It can be used for creation of synchronous and asynchronous ciphers.
Associated Types
Loading content...Required methods
fn new(
key: &GenericArray<u8, Self::KeySize>,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
key: &GenericArray<u8, Self::KeySize>,
nonce: &GenericArray<u8, Self::NonceSize>
) -> Self
Create new stream cipher instance from variable length key and nonce.
Provided methods
fn new_var(key: &[u8], nonce: &[u8]) -> Result<Self, InvalidKeyNonceLength>
Create new stream cipher instance from variable length key and nonce.