Struct risc0_zkp::core::sha_cpu::Impl

source ·
pub struct Impl {}
Expand description

A CPU-based Sha implementation.

Implementations§

Compute the hash of a slice of plain-old-data using the specified offset and stride. ‘size’ specifies the number of elements to hash.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
A pointer to the created digest. Read more
Generate a SHA from a slice of bytes, padding to block size and adding the SHA trailer.
Generate a SHA from a slice of words, padding to block size and adding the SHA trailer.
Generate a SHA from a slice of words without adding padding or length.
Generate a SHA from a slice of anything that can be represented as plain old data. Pads up to the Sha block boundry, but does not add the standard SHA trailer.
Execute the sha256 “compress” operation. The block is specified as two half-blocks. Not all implementations provide this.
Generate a new digest by mixing two digests together via XOR, and storing into the first digest.
Generate a SHA from a pair of Digests.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more