pub trait KeySizeUser {
    type KeySize: ArrayLength<u8> + 'static;

    // Provided method
    fn key_size() -> usize { ... }
}
Expand description

Types which use key for initialization.

Generally it’s used indirectly via KeyInit or KeyIvInit.

Required Associated Types§

type KeySize: ArrayLength<u8> + 'static

Key size in bytes.

Provided Methods§

fn key_size() -> usize

Return key size in bytes.

Implementations on Foreign Types§

source§

impl<D> KeySizeUser for SimpleHmac<D>where D: Digest + BlockSizeUser,

source§

impl<D> KeySizeUser for HmacCore<D>where D: CoreProxy, <D as CoreProxy>::Core: HashMarker + UpdateCore + FixedOutputCore<BufferKind = Eager> + BufferKindUser + Default + Clone, <<D as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>, <<<D as CoreProxy>::Core as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,

Implementors§