Struct ring_compat::digest::Sha512Trunc256
source · pub struct Sha512Trunc256(/* private fields */);
Available on crate feature
digest
only.Expand description
Structure representing the state of a SHA-512/256 computation
Trait Implementations§
source§impl BlockSizeUser for Sha512Trunc256
impl BlockSizeUser for Sha512Trunc256
source§impl Clone for Sha512Trunc256
impl Clone for Sha512Trunc256
source§fn clone(&self) -> Sha512Trunc256
fn clone(&self) -> Sha512Trunc256
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Sha512Trunc256
impl Debug for Sha512Trunc256
source§impl Default for Sha512Trunc256
impl Default for Sha512Trunc256
source§impl FixedOutput for Sha512Trunc256
impl FixedOutput for Sha512Trunc256
source§fn finalize_into(self, out: &mut GenericArray<u8, Self::OutputSize>)
fn finalize_into(self, out: &mut GenericArray<u8, Self::OutputSize>)
Consume value and write result into provided array.
source§fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and consume the hasher instance.
source§impl FixedOutputReset for Sha512Trunc256
impl FixedOutputReset for Sha512Trunc256
source§fn finalize_into_reset(&mut self, out: &mut GenericArray<u8, Self::OutputSize>)
fn finalize_into_reset(&mut self, out: &mut GenericArray<u8, Self::OutputSize>)
Write result into provided array and reset the hasher state.
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 state.
source§impl OutputSizeUser for Sha512Trunc256
impl OutputSizeUser for Sha512Trunc256
Auto Trait Implementations§
impl RefUnwindSafe for Sha512Trunc256
impl Send for Sha512Trunc256
impl Sync for Sha512Trunc256
impl Unpin for Sha512Trunc256
impl UnwindSafe for Sha512Trunc256
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> DynDigest for Dwhere
D: Update + FixedOutputReset + Reset + Clone + 'static,
impl<D> DynDigest for Dwhere D: Update + FixedOutputReset + Reset + Clone + 'static,
source§fn finalize_reset(&mut self) -> Box<[u8]>
fn finalize_reset(&mut self) -> Box<[u8]>
Available on crate feature
alloc
only.Retrieve result and reset hasher instance
source§fn finalize(self: Box<D>) -> Box<[u8]>
fn finalize(self: Box<D>) -> Box<[u8]>
Available on crate feature
alloc
only.Retrieve result and consume boxed hasher instance
source§fn finalize_into(self, buf: &mut [u8]) -> Result<(), InvalidBufferSize>
fn finalize_into(self, buf: &mut [u8]) -> Result<(), InvalidBufferSize>
Write result into provided array and consume the hasher instance. Read more
source§fn finalize_into_reset(
&mut self,
buf: &mut [u8]
) -> Result<(), InvalidBufferSize>
fn finalize_into_reset( &mut self, buf: &mut [u8] ) -> Result<(), InvalidBufferSize>
Write result into provided array and reset the hasher instance. Read more
source§fn output_size(&self) -> usize
fn output_size(&self) -> usize
Get output size of the hasher