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: ArraySize;

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

Types which return data with the given size.

Required Associated Types§

Source

type OutputSize: ArraySize

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".

Implementations on Foreign Types§

Source§

impl OutputSizeUser for Sha1Core

Source§

impl OutputSizeUser for Sha224

Source§

impl OutputSizeUser for Sha256VarCore

Source§

impl OutputSizeUser for Sha512VarCore

Source§

impl OutputSizeUser for Sha512_224

Source§

impl OutputSizeUser for Sha512_256

Source§

impl<D> OutputSizeUser for HmacCore<D>
where D: EagerHash,

Source§

impl<D> OutputSizeUser for HmacReset<D>
where D: EagerHash,

Source§

impl<D> OutputSizeUser for HmacResetCore<D>
where D: EagerHash,

Source§

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

Source§

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

Source§

impl<T, OutSize> OutputSizeUser for CtOutWrapper<T, OutSize>
where T: VariableOutputCore, OutSize: ArraySize + IsLessOrEqual<<T as OutputSizeUser>::OutputSize, Output = B1>,

Source§

type OutputSize = OutSize

Source§

impl<T, S> OutputSizeUser for XofFixedWrapper<T, S>

Implementors§