Trait coins_bip32::ecdsa::signature::digest::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.

Object Safety§

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§