[][src]Trait crypto_mac::FromBlockCipher

pub trait FromBlockCipher {
    type Cipher: BlockCipher;
    fn from_cipher(cipher: Self::Cipher) -> Self;
}
This is supported on feature="block-cipher" only.

Trait for MAC functions which can be created from block cipher.

Associated Types

type Cipher: BlockCipher

This is supported on feature="block-cipher" only.

Block cipher type

Loading content...

Required methods

fn from_cipher(cipher: Self::Cipher) -> Self

This is supported on feature="block-cipher" only.

Create new MAC isntance from provided block cipher.

Loading content...

Implementors

Loading content...