Struct risc0_zkvm_guest::sha::Impl
source · [−]pub struct Impl {}
Expand description
A guest-side Sha implementation.
Trait Implementations
sourceimpl Sha for Impl
impl Sha for Impl
sourcefn hash_bytes(&self, bytes: &[u8]) -> Self::DigestPtr
fn hash_bytes(&self, bytes: &[u8]) -> Self::DigestPtr
Generate a SHA from a slice of bytes.
sourcefn hash_pair(&self, a: &Digest, b: &Digest) -> Self::DigestPtr
fn hash_pair(&self, a: &Digest, b: &Digest) -> Self::DigestPtr
Generate a SHA from a pair of Digests.
sourcefn mix(&self, pool: &mut Self::DigestPtr, val: &Digest)
fn mix(&self, pool: &mut Self::DigestPtr, val: &Digest)
Generate a new digest by mixing two digests together via XOR, and storing into the first digest. Read more
sourcefn hash_words(&self, words: &[u32]) -> Self::DigestPtr
fn hash_words(&self, words: &[u32]) -> Self::DigestPtr
Generate a SHA from a slice of words.
Auto Trait Implementations
impl RefUnwindSafe for Impl
impl Send for Impl
impl Sync for Impl
impl Unpin for Impl
impl UnwindSafe for Impl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more