pub struct Sha256 { /* private fields */ }
Expand description

The SHA-256 hash algorithm with the SHA-256 initial hash value.

Trait Implementations

Block size

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Output size for fixed output digest

Retrieve result into provided buffer and leave hasher in a dirty state. Read more

Reset hasher instance to its initial state and return current state.

Digest input data. Read more

Digest input data in a chained manner.

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

Output size for Digest

Create new hasher instance

Digest data, updating the internal state. Read more

Digest input data in a chained manner.

Retrieve result and consume hasher instance.

Retrieve result and reset hasher instance. Read more

Reset hasher instance to its initial state.

Get output size of the hasher

Convenience function to compute hash of the data. It will handle hasher creation, data feeding and finalization. Read more

Output size for fixed output digest

Write result into provided array and consume the hasher instance.

Write result into provided array and reset the hasher instance.

Retrieve result and consume the hasher instance.

Retrieve result and reset the hasher instance.

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.