Struct drogue_tls::Sha256
source · [−]pub struct Sha256 { /* private fields */ }
Expand description
The SHA-256 hash algorithm with the SHA-256 initial hash value.
Trait Implementations
sourceimpl BlockInput for Sha256
impl BlockInput for Sha256
sourceimpl FixedOutputDirty for Sha256
impl FixedOutputDirty for Sha256
type OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
type OutputSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
Output size for fixed output digest
sourcefn finalize_into_dirty(
&mut self,
out: &mut GenericArray<u8, <Sha256 as Digest>::OutputSize>
)
fn finalize_into_dirty(
&mut self,
out: &mut GenericArray<u8, <Sha256 as Digest>::OutputSize>
)
Retrieve result into provided buffer and leave hasher in a dirty state. Read more
Auto Trait Implementations
impl RefUnwindSafe for Sha256
impl Send for Sha256
impl Sync for Sha256
impl Unpin for Sha256
impl UnwindSafe for Sha256
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
sourceimpl<D> Digest for D where
D: Update + FixedOutput + Reset + Clone + Default,
impl<D> Digest for D where
D: Update + FixedOutput + Reset + Clone + Default,
type OutputSize = <D as FixedOutput>::OutputSize
type OutputSize = <D as FixedOutput>::OutputSize
Output size for Digest
sourcefn update(&mut self, data: impl AsRef<[u8]>)
fn update(&mut self, data: impl AsRef<[u8]>)
Digest data, updating the internal state. Read more
sourcefn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
Retrieve result and consume hasher instance.
sourcefn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
fn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
Retrieve result and reset hasher instance. Read more
sourcefn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher
sourcefn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>
fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>
Convenience function to compute hash of the data
. It will handle
hasher creation, data feeding and finalization. Read more
sourceimpl<D> FixedOutput for D where
D: FixedOutputDirty + Reset,
impl<D> FixedOutput for D where
D: FixedOutputDirty + Reset,
type OutputSize = <D as FixedOutputDirty>::OutputSize
type OutputSize = <D as FixedOutputDirty>::OutputSize
Output size for fixed output digest
sourcefn finalize_into(
self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
fn finalize_into(
self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
Write result into provided array and consume the hasher instance.
sourcefn finalize_into_reset(
&mut self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
fn finalize_into_reset(
&mut self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
Write result into provided array and reset the hasher instance.
sourcefn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and consume the hasher instance.
sourcefn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and reset the hasher instance.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more