pub struct Sha256 { /* private fields */ }
Expand description
The SHA-256 hash algorithm with the SHA-256 initial hash value.
Trait Implementations
type OutputSize = U32
type OutputSize = U32
Output size for fixed output digest
Retrieve result into provided buffer and leave hasher in a dirty state. Read more
Auto Trait Implementations
impl RefUnwindSafe for Sha256
impl UnwindSafe for Sha256
Blanket Implementations
Mutably borrows from an owned value. Read more
type OutputSize = <D as FixedOutput>::OutputSize
type OutputSize = <D as FixedOutput>::OutputSize
Output size for Digest
Digest data, updating the internal state. Read more
Retrieve result and consume hasher instance.
Retrieve result and reset hasher instance. Read more
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
type OutputSize = <D as FixedOutputDirty>::OutputSize
type OutputSize = <D as FixedOutputDirty>::OutputSize
Output size for fixed output digest
Write result into provided array and consume the hasher instance.
pub fn finalize_into_reset(
&mut self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
pub fn finalize_into_reset(
&mut self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
Write result into provided array and reset the hasher instance.
Retrieve result and consume the hasher instance.
Retrieve result and reset the hasher instance.