Trait block_cipher_trait::NewVarKey
[−]
[src]
pub trait NewVarKey: BlockCipher + Sized { fn new(key: &[u8]) -> Result<Self, InvalidKeyLength>; }
Trait for creation of block cipher with variable size keys.
This trait is auto implemented for NewFixKey
.
Required Methods
fn new(key: &[u8]) -> Result<Self, InvalidKeyLength>
Create new block cipher instance with given key, if length of given key is unsupported by implementation error will be returned.
Implementors
impl<T: NewFixKey> NewVarKey for T