pub struct Sha1 { /* private fields */ }
Expand description
Structure representing the state of a SHA-1 computation
Trait Implementations§
source§impl BlockInput for Sha1
impl BlockInput for Sha1
source§impl FixedOutputDirty for Sha1
impl FixedOutputDirty for Sha1
Auto Trait Implementations§
impl RefUnwindSafe for Sha1
impl Send for Sha1
impl Sync for Sha1
impl Unpin for Sha1
impl UnwindSafe for Sha1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<D> Digest for Dwhere
D: Update + FixedOutput + Reset + Clone + Default,
impl<D> Digest for Dwhere D: Update + FixedOutput + Reset + Clone + Default,
§type OutputSize = <D as FixedOutput>::OutputSize
type OutputSize = <D as FixedOutput>::OutputSize
Output size for
Digest
source§fn update(&mut self, data: impl AsRef<[u8]>)
fn update(&mut self, data: impl AsRef<[u8]>)
Digest data, updating the internal state. Read more
source§fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
Retrieve result and consume hasher instance.
source§fn 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
source§fn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher
source§fn 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 moresource§impl<D> DynDigest for Dwhere
D: Update + FixedOutput + Reset + Clone + 'static,
impl<D> DynDigest for Dwhere D: Update + FixedOutput + Reset + Clone + 'static,
source§impl<D> FixedOutput for Dwhere
D: FixedOutputDirty + Reset,
impl<D> FixedOutput for Dwhere D: FixedOutputDirty + Reset,
§type OutputSize = <D as FixedOutputDirty>::OutputSize
type OutputSize = <D as FixedOutputDirty>::OutputSize
Output size for fixed output digest
source§fn 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.
source§fn 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.
source§fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>where
Self: Sized,
fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>where Self: Sized,
Retrieve result and consume the hasher instance.
source§fn 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.