Struct sha::sha256::Sha256
[-] [+]
[src]
pub struct Sha256(_, _);
TODO: docs
Trait Implementations
impl Default for Sha256
impl Reset for Sha256
fn reset(&mut self)
Reset the state
impl Write for Sha256
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 Sha256
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 Sha256
fn finish(&self) -> u64
Get the first 8 bytes of the state
fn write(&mut self, buf: &[u8])
Write to buffer