Skip to main content

FromBlockCipher

Trait FromBlockCipher 

Source
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§

Source

type Cipher: BlockCipher

Block cipher type

Required Methods§

Source

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".

Implementors§