Struct sha::sha512::Sha512
[-] [+]
[src]
pub struct Sha512(_, _);
TODO: docs
Trait Implementations
impl Default for Sha512
impl Reset for Sha512
fn reset(&mut self)
Reset the state
impl Write for Sha512
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write to buffer
fn flush(&mut self) -> Result<()>
Digest buffer
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
impl Read for Sha512
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Read state as big-endian
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<(), Error>
fn read_to_string(&mut self, buf: &mut String) -> Result<(), Error>
impl Hasher for Sha512
fn finish(&self) -> u64
Get the first 8 bytes of the state
fn write(&mut self, buf: &[u8])
Write to buffer