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

FixedOutput

Trait FixedOutput 

Source
pub trait FixedOutput:
    Sized
    + Update
    + OutputSizeUser {
    // Required method
    fn finalize_into(self, out: &mut Array<u8, Self::OutputSize>);

    // Provided method
    fn finalize_fixed(self) -> Array<u8, Self::OutputSize> { ... }
}
Expand description

Trait for hash functions with fixed-size output.

Required Methods§

Source

fn finalize_into(self, out: &mut Array<u8, Self::OutputSize>)

Consume value and write result into provided array.

Provided Methods§

Source

fn finalize_fixed(self) -> Array<u8, Self::OutputSize>

Retrieve result and consume the hasher instance.

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 FixedOutput for Sha224

Source§

impl FixedOutput for Sha512_224

Source§

impl FixedOutput for Sha512_256

Source§

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

Source§

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

Source§

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

Implementors§