Struct winter_crypto::hashers::Sha3_256
source · pub struct Sha3_256<B: StarkField>(_);
Expand description
Implementation of the Hasher trait for SHA3 hash function with 256-bit output.
Trait Implementations§
source§impl<B: StarkField> ElementHasher for Sha3_256<B>
impl<B: StarkField> ElementHasher for Sha3_256<B>
source§fn hash_elements<E: FieldElement<BaseField = Self::BaseField>>(
elements: &[E]
) -> Self::Digest
fn hash_elements<E: FieldElement<BaseField = Self::BaseField>>( elements: &[E] ) -> Self::Digest
Returns a hash of the provided field elements.
source§impl<B: StarkField> Hasher for Sha3_256<B>
impl<B: StarkField> Hasher for Sha3_256<B>
Auto Trait Implementations§
impl<B> RefUnwindSafe for Sha3_256<B>where B: RefUnwindSafe,
impl<B> Send for Sha3_256<B>
impl<B> Sync for Sha3_256<B>
impl<B> Unpin for Sha3_256<B>where B: Unpin,
impl<B> UnwindSafe for Sha3_256<B>where B: 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