Struct sha2::Sha384 [−][src]
pub struct Sha384 { /* fields omitted */ }
The SHA-512 hash algorithm with the SHA-384 initial hash value. The result is truncated to 384 bits.
Trait Implementations
impl Clone for Sha384
[src]
impl Clone for Sha384
ⓘImportant traits for Sha384fn clone(&self) -> Sha384
[src]
fn clone(&self) -> Sha384
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 Sha384
[src]
impl Default for Sha384
impl BlockInput for Sha384
[src]
impl BlockInput for Sha384
type BlockSize = U128
impl Input for Sha384
[src]
impl Input for Sha384
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 Sha384
[src]
impl FixedOutput for Sha384
type OutputSize = U48
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 Sha384
[src]
impl Reset for Sha384
impl Debug for Sha384
impl Debug for Sha384
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 Sha384
impl Write for Sha384
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