Skip to main content
This is unreleased documentation for the main (development) branch of crypto-glue.

OutputSizeUser

Trait OutputSizeUser 

Source
pub trait OutputSizeUser {
    type OutputSize: ArrayLength<u8> + 'static;

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

Types which return data with the given size.

Required Associated Types§

Source

type OutputSize: ArrayLength<u8> + 'static

Size of the output in bytes.

Provided Methods§

Source

fn output_size() -> usize

Return output size in bytes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl OutputSizeUser for Blake2bVarCore

Source§

impl OutputSizeUser for Blake2sVarCore

Source§

impl OutputSizeUser for Sha1Core

Source§

impl OutputSizeUser for Sha256VarCore

Source§

impl OutputSizeUser for Sha512VarCore

Source§

impl<D> OutputSizeUser for HmacCore<D>

Source§

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

Source§

impl<OutSize> OutputSizeUser for Blake2bMac<OutSize>
where OutSize: ArrayLength<u8> + IsLessOrEqual<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>> + 'static, <OutSize as IsLessOrEqual<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,

Source§

type OutputSize = OutSize

Source§

impl<OutSize> OutputSizeUser for Blake2sMac<OutSize>
where OutSize: ArrayLength<u8> + IsLessOrEqual<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>> + 'static, <OutSize as IsLessOrEqual<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,

Source§

type OutputSize = OutSize

Source§

impl<T> OutputSizeUser for CoreWrapper<T>

Source§

impl<T, OutSize, O> OutputSizeUser for CtVariableCoreWrapper<T, OutSize, O>

Source§

type OutputSize = OutSize

Implementors§