Struct sha2::Sha512Trunc224
source · [−]pub struct Sha512Trunc224 { /* private fields */ }
Expand description
The SHA-512 hash algorithm with the SHA-512/224 initial hash value. The result is truncated to 224 bits.
Trait Implementations
sourceimpl BlockInput for Sha512Trunc224
impl BlockInput for Sha512Trunc224
sourceimpl Clone for Sha512Trunc224
impl Clone for Sha512Trunc224
sourcefn clone(&self) -> Sha512Trunc224ⓘNotable traits for Sha512Trunc224impl Write for Sha512Trunc224
fn clone(&self) -> Sha512Trunc224ⓘNotable traits for Sha512Trunc224impl Write for Sha512Trunc224
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Sha512Trunc224
impl Debug for Sha512Trunc224
sourceimpl Default for Sha512Trunc224
impl Default for Sha512Trunc224
sourceimpl FixedOutputDirty for Sha512Trunc224
impl FixedOutputDirty for Sha512Trunc224
type OutputSize = U28
type OutputSize = U28
Output size for fixed output digest
sourcefn finalize_into_dirty(&mut self, out: &mut Output<Self>)
fn finalize_into_dirty(&mut self, out: &mut Output<Self>)
Retrieve result into provided buffer and leave hasher in a dirty state. Read more
sourceimpl Reset for Sha512Trunc224
impl Reset for Sha512Trunc224
sourceimpl Update for Sha512Trunc224
impl Update for Sha512Trunc224
sourceimpl Write for Sha512Trunc224
impl Write for Sha512Trunc224
sourcefn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written. Read more
sourcefn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
sourcefn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
1.0.0 · sourcefn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
sourcefn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Sha512Trunc224
impl Send for Sha512Trunc224
impl Sync for Sha512Trunc224
impl Unpin for Sha512Trunc224
impl UnwindSafe for Sha512Trunc224
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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
sourcepub fn update(&mut self, data: impl AsRef<[u8]>)
pub fn update(&mut self, data: impl AsRef<[u8]>)
Digest data, updating the internal state. Read more
sourcepub fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
pub fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
Retrieve result and consume hasher instance.
sourcepub fn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
pub fn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
Retrieve result and reset hasher instance. Read more
sourcepub fn output_size() -> usize
pub fn output_size() -> usize
Get output size of the hasher
sourcepub fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>
pub 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> DynDigest for D where
D: 'static + Update + FixedOutput + Reset + Clone,
impl<D> DynDigest for D where
D: 'static + Update + FixedOutput + Reset + Clone,
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
sourcepub fn finalize_into(
self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
pub fn finalize_into(
self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
Write result into provided array and consume the hasher instance.
sourcepub 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.
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more