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

Create new block cipher instance with given key, if length of given key is unsupported by implementation error will be returned.

Implementors