[][src]Trait pmac::FromBlockCipher

pub trait FromBlockCipher {
    type Cipher: BlockCipher;
    fn from_cipher(cipher: Self::Cipher) -> Self;
}

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

Associated Types

type Cipher: BlockCipher

Block cipher type

Loading content...

Required methods

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

Create new MAC isntance from provided block cipher.

Loading content...

Implementors

impl<C> FromBlockCipher for Pmac<C> where
    C: BlockCipher + Clone,
    GenericArray<u8, C::BlockSize>: Dbl
[src]

type Cipher = C

Loading content...