binius_hash

Type Alias GroestlHasher

Source
pub type GroestlHasher<P> = Groestl256<P, BinaryField8b>;
Expand description

An alias for Grøstl256 defined over BinaryField8b

Aliased Type§

struct GroestlHasher<P> { /* private fields */ }

Trait Implementations

Source§

impl<P: Clone, F: Clone> Clone for Groestl256<P, F>

Source§

fn clone(&self) -> Groestl256<P, F>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<P: Debug, F: Debug> Debug for Groestl256<P, F>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P, F> Default for Groestl256<P, F>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<P, F> Hasher<P> for Groestl256<P, F>
where F: BinaryField + From<AESTowerField8b> + Into<AESTowerField8b>, P: PackedExtension<F, PackedSubfield: PackedFieldIndexable>, P::Scalar: ExtensionField<F>, OptimalUnderlier256b: PackScalar<F> + Divisible<F::Underlier>, Self: UpdateOverSlice<Elem = F>,

Source§

type Digest = <ScaledUnderlier<M128, 2> as PackScalar<F>>::Packed

The hash function output type.
Source§

fn new() -> Self

Source§

fn update(&mut self, data: impl AsRef<[P]>)

Source§

fn chain_update(self, data: impl AsRef<[P]>) -> Self

Source§

fn finalize(self) -> Self::Digest

Source§

fn finalize_into(self, out: &mut MaybeUninit<Self::Digest>)

Source§

fn finalize_reset(&mut self) -> Self::Digest

Source§

fn finalize_into_reset(&mut self, out: &mut MaybeUninit<Self::Digest>)

Source§

fn reset(&mut self)