Struct sha::sha384::Sha384 [-] [+] [src]

pub struct Sha384(_, _);

TODO: docs

Trait Implementations

impl Default for Sha384

fn default() -> Sha384

Construct a default Sha384 object.

impl Reset for Sha384

fn reset(&mut self)

Reset the state

impl Write for Sha384

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 Sha384

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 Sha384

fn finish(&self) -> u64

Get the first 8 bytes of the state

fn write(&mut self, buf: &[u8])

Write to buffer

fn write_u8(&mut self, i: u8)

fn write_u16(&mut self, i: u16)

fn write_u32(&mut self, i: u32)

fn write_u64(&mut self, i: u64)

fn write_usize(&mut self, i: usize)

fn write_i8(&mut self, i: i8)

fn write_i16(&mut self, i: i16)

fn write_i32(&mut self, i: i32)

fn write_i64(&mut self, i: i64)

fn write_isize(&mut self, i: isize)

impl Digest for Sha384

fn digest(&mut self, msg: &[u8]) -> &mut Self

fn to_bytes_len(&mut self, len: usize) -> Vec<u8>

fn to_hex_len(&mut self, len: usize) -> String

impl DigestExt for Sha384

fn default_len() -> usize

fn to_bytes(&mut self) -> Vec<u8>

fn to_hex(&mut self) -> String

Derived Implementations

impl Clone for Sha384

fn clone(&self) -> Sha384

fn clone_from(&mut self, source: &Self)