Trait stream_cipher::NewStreamCipher [−][src]
Stream cipher creation trait.
It can be used for creation of synchronous and asynchronous ciphers.
Associated Types
type KeySize: ArrayLength<u8>[src]
Key size in bytes
type NonceSize: ArrayLength<u8>[src]
Nonce size in bytes
Required methods
fn new(key: &Key<Self>, nonce: &Nonce<Self>) -> Self[src]
Create new stream cipher instance from variable length key and nonce.
Provided methods
fn new_var(key: &[u8], nonce: &[u8]) -> Result<Self, InvalidKeyNonceLength>[src]
Create new stream cipher instance from variable length key and nonce.
Implementors
impl<C> NewStreamCipher for C where
    C: FromBlockCipher, [src]
C: FromBlockCipher,