pub trait FromBlockCipher {
type Cipher: BlockCipher;
// Required method
fn from_cipher(cipher: Self::Cipher) -> Self;
}Available on crate feature
cipher only.Expand description
Trait for MAC functions which can be created from block cipher.
Required Associated Types§
Sourcetype Cipher: BlockCipher
type Cipher: BlockCipher
Block cipher type
Required Methods§
Sourcefn from_cipher(cipher: Self::Cipher) -> Self
fn from_cipher(cipher: Self::Cipher) -> Self
Create new MAC isntance from provided block cipher.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".