Trait crypto_mac::FromBlockCipher [−][src]
pub trait FromBlockCipher { type Cipher: BlockCipher; fn from_cipher(cipher: Self::Cipher) -> Self; }
This is supported on crate feature
cipher
only.Expand description
Trait for MAC functions which can be created from block cipher.
Associated Types
type Cipher: BlockCipher
type Cipher: BlockCipher
Block cipher type
Required methods
fn from_cipher(cipher: Self::Cipher) -> Self
fn from_cipher(cipher: Self::Cipher) -> Self
Create new MAC isntance from provided block cipher.