[][src]Struct cmac::Cmac

pub struct Cmac<C> where
    C: BlockCipher + Clone,
    GenericArray<u8, C::BlockSize>: Dbl
{ /* fields omitted */ }

Generic CMAC instance

Trait Implementations

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

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

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

type Cipher = C

Block cipher type

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

type OutputSize = C::BlockSize

Output size of the [Mac]

Auto Trait Implementations

impl<C> Send for Cmac<C> where
    C: Send,
    <C as BlockCipher>::BlockSize: ArrayLength<u8>, 

impl<C> Sync for Cmac<C> where
    C: Sync,
    <C as BlockCipher>::BlockSize: ArrayLength<u8>, 

impl<C> Unpin for Cmac<C> where
    C: Unpin,
    <<C as BlockCipher>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> NewMac for T where
    T: FromBlockCipher,
    <T as FromBlockCipher>::Cipher: NewBlockCipher, 
[src]

type KeySize = <<T as FromBlockCipher>::Cipher as NewBlockCipher>::KeySize

Key size in bytes with which cipher guaranteed to be initialized.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.