Struct ring_compat::digest::Sha512Trunc256 [−][src]
#[repr(transparent)]pub struct Sha512Trunc256(_);
This is supported on crate feature
digest
only.Structure representing the state of a SHA-512/256 computation
Trait Implementations
impl BlockInput for Sha512Trunc256
[src]
impl BlockInput for Sha512Trunc256
[src]type BlockSize = U128
Block size
impl Clone for Sha512Trunc256
[src]
impl Clone for Sha512Trunc256
[src]fn clone(&self) -> Sha512Trunc256ⓘNotable traits for Sha512Trunc256
impl Write for Sha512Trunc256
[src]
Notable traits for Sha512Trunc256
impl Write for Sha512Trunc256
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for Sha512Trunc256
[src]
impl Default for Sha512Trunc256
[src]impl FixedOutput for Sha512Trunc256
[src]
impl FixedOutput for Sha512Trunc256
[src]type OutputSize = U32
Output size for fixed output digest
fn finalize_into(self, out: &mut GenericArray<u8, Self::OutputSize>)
[src]
fn finalize_into_reset(&mut self, out: &mut GenericArray<u8, Self::OutputSize>)
[src]
pub fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
[src]
pub fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
[src]
impl Reset for Sha512Trunc256
[src]
impl Reset for Sha512Trunc256
[src]impl Update for Sha512Trunc256
[src]
impl Update for Sha512Trunc256
[src]impl Write for Sha512Trunc256
[src]
impl Write for Sha512Trunc256
[src]fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn flush(&mut self) -> Result<()>
[src]
pub fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>
1.36.0[src]
pub fn is_write_vectored(&self) -> bool
[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>
1.0.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Sha512Trunc256
impl RefUnwindSafe for Sha512Trunc256
impl Send for Sha512Trunc256
impl Send for Sha512Trunc256
impl Sync for Sha512Trunc256
impl Sync for Sha512Trunc256
impl Unpin for Sha512Trunc256
impl Unpin for Sha512Trunc256
impl UnwindSafe for Sha512Trunc256
impl UnwindSafe for Sha512Trunc256
Blanket Implementations
impl<D> Digest for D where
D: Update + FixedOutput + Reset + Clone + Default,
[src]
impl<D> Digest for D where
D: Update + FixedOutput + Reset + Clone + Default,
[src]type OutputSize = <D as FixedOutput>::OutputSize
Output size for Digest
pub fn new() -> D
[src]
pub fn update(&mut self, data: impl AsRef<[u8]>)
[src]
pub fn chain(self, data: impl AsRef<[u8]>) -> D
[src]
pub fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
pub fn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
pub fn reset(&mut self)
[src]
pub fn output_size() -> usize
[src]
pub fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self