Trait aes::NewBlockCipher [−][src]
pub trait NewBlockCipher { type KeySize: ArrayLength<u8>; fn new(key: &GenericArray<u8, Self::KeySize>) -> Self; fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> { ... } }
Expand description
Instantiate a BlockCipher
algorithm.
Associated Types
Required methods
Provided methods
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
[src]
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
[src]Create new block cipher instance from key with variable size.
Default implementation will accept only keys with length equal to
KeySize
, but some ciphers can accept range of key lengths.
Implementors
impl NewBlockCipher for Aes128
[src]
impl NewBlockCipher for Aes128
[src]impl NewBlockCipher for Aes192
[src]
impl NewBlockCipher for Aes192
[src]