Skip to main content

FixedOutputCore

Trait FixedOutputCore 

Source
pub trait FixedOutputCore:
    UpdateCore
    + BufferKindUser
    + OutputSizeUser {
    // Required method
    fn finalize_fixed_core(
        &mut self,
        buffer: &mut Buffer<Self>,
        out: &mut Output<Self>,
    );
}
Expand description

Core trait for hash functions with fixed output size.

Required Methods§

Source

fn finalize_fixed_core( &mut self, buffer: &mut Buffer<Self>, out: &mut Output<Self>, )

Finalize state using remaining data stored in the provided block buffer, write result into provided array and leave self in a dirty state.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, OutSize> FixedOutputCore for CtOutWrapper<T, OutSize>
where T: VariableOutputCore, OutSize: ArraySize + IsLessOrEqual<T::OutputSize, Output = True>,