pub struct Groestl256Core;
Expand description
Portable version of the Grøstl256 hash function’s P and Q permutations that uses the
implementation of section 8.1.2
from Grøstl
Implementations§
source§impl Groestl256Core
impl Groestl256Core
sourcepub fn permutation_pq(
&self,
p: PackedAESBinaryField64x8b,
q: PackedAESBinaryField64x8b,
) -> (PackedAESBinaryField64x8b, PackedAESBinaryField64x8b)
pub fn permutation_pq( &self, p: PackedAESBinaryField64x8b, q: PackedAESBinaryField64x8b, ) -> (PackedAESBinaryField64x8b, PackedAESBinaryField64x8b)
This function can be used to create the compression function of Grøstl256 hash efficiently from the P and Q permutations
sourcepub fn permutation_p(
&self,
p: PackedAESBinaryField64x8b,
) -> PackedAESBinaryField64x8b
pub fn permutation_p( &self, p: PackedAESBinaryField64x8b, ) -> PackedAESBinaryField64x8b
This function is simply the P permutation from Grøstl256 that is intended to be used in the output transformation stage of hash function at finalization
Trait Implementations§
source§impl Clone for Groestl256Core
impl Clone for Groestl256Core
source§fn clone(&self) -> Groestl256Core
fn clone(&self) -> Groestl256Core
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 Debug for Groestl256Core
impl Debug for Groestl256Core
source§impl Default for Groestl256Core
impl Default for Groestl256Core
source§fn default() -> Groestl256Core
fn default() -> Groestl256Core
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Groestl256Core
impl RefUnwindSafe for Groestl256Core
impl Send for Groestl256Core
impl Sync for Groestl256Core
impl Unpin for Groestl256Core
impl UnwindSafe for Groestl256Core
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