Struct sha2::Sha512Trunc256 [−][src]
pub struct Sha512Trunc256 { /* fields omitted */ }
The SHA-512 hash algorithm with the SHA-512/256 initial hash value. The result is truncated to 256 bits.
Trait Implementations
impl Clone for Sha512Trunc256
[src]
impl Clone for Sha512Trunc256
ⓘImportant traits for Sha512Trunc256fn clone(&self) -> Sha512Trunc256
[src]
fn clone(&self) -> Sha512Trunc256
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for Sha512Trunc256
[src]
impl Default for Sha512Trunc256
impl BlockInput for Sha512Trunc256
[src]
impl BlockInput for Sha512Trunc256
type BlockSize = U128
impl Input for Sha512Trunc256
[src]
impl Input for Sha512Trunc256
fn input<B: AsRef<[u8]>>(&mut self, input: B)
[src]
fn input<B: AsRef<[u8]>>(&mut self, input: B)
Digest input data. Read more
fn chain<B>(self, data: B) -> Self where
B: AsRef<[u8]>,
[src]
fn chain<B>(self, data: B) -> Self where
B: AsRef<[u8]>,
Digest input data in a chained manner.
impl FixedOutput for Sha512Trunc256
[src]
impl FixedOutput for Sha512Trunc256
type OutputSize = U32
fn fixed_result(self) -> GenericArray<u8, Self::OutputSize>
[src]
fn fixed_result(self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and consume hasher instance.
impl Reset for Sha512Trunc256
[src]
impl Reset for Sha512Trunc256
impl Debug for Sha512Trunc256
impl Debug for Sha512Trunc256
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Write for Sha512Trunc256
impl Write for Sha512Trunc256
fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
Writes a formatted string into this writer, returning any error encountered. Read more
ⓘImportant traits for &'a mut Ifn by_ref(&mut self) -> &mut Self
1.0.0[src]
fn by_ref(&mut self) -> &mut Self
Creates a "by reference" adaptor for this instance of Write
. Read more
Auto Trait Implementations
impl Send for Sha512Trunc256
impl Send for Sha512Trunc256
impl Sync for Sha512Trunc256
impl Sync for Sha512Trunc256