Trait FixedOutput

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

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

Trait for hash functions with fixed-size output.

Required Methods§

Source

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

Consume value and write result into provided array.

Provided Methods§

Source

fn finalize_fixed(self) -> GenericArray<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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FixedOutput for Hash160

Source§

impl FixedOutput for Hash256

Source§

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

Implementors§