pub struct Groestl256<P, F> { /* private fields */ }
Expand description
The Grøstl-256 hash function.
The Grøstl-256 hash function can be viewed as natively defined over AESTowerField8b
and isomorphically maps to BinaryField8b
. The type P
is the input to the update
function which has to be over a packed extension field of BinaryField8b
or AESTowerField8b
.
Trait Implementations§
source§impl<P: Clone, F: Clone> Clone for Groestl256<P, F>
impl<P: Clone, F: Clone> Clone for Groestl256<P, F>
source§fn clone(&self) -> Groestl256<P, F>
fn clone(&self) -> Groestl256<P, F>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<P, F> Default for Groestl256<P, F>
impl<P, F> Default for Groestl256<P, F>
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>,
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
type Digest = <ScaledUnderlier<M128, 2> as PackScalar<F>>::Packed
The hash function output type.
fn new() -> Self
fn update(&mut self, data: impl AsRef<[P]>)
fn chain_update(self, data: impl AsRef<[P]>) -> Self
fn finalize(self) -> Self::Digest
fn finalize_into(self, out: &mut MaybeUninit<Self::Digest>)
fn finalize_reset(&mut self) -> Self::Digest
fn finalize_into_reset(&mut self, out: &mut MaybeUninit<Self::Digest>)
fn reset(&mut self)
Auto Trait Implementations§
impl<P, F> Freeze for Groestl256<P, F>
impl<P, F> RefUnwindSafe for Groestl256<P, F>where
P: RefUnwindSafe,
F: RefUnwindSafe,
impl<P, F> Send for Groestl256<P, F>
impl<P, F> Sync for Groestl256<P, F>
impl<P, F> Unpin for Groestl256<P, F>
impl<P, F> UnwindSafe for Groestl256<P, F>where
P: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more