Struct sha::shake256::Shake256 [-] [+] [src]

pub struct Shake256(_, _);

TODO: docs

Trait Implementations

impl Default for Shake256

fn default() -> Shake256

Construct a default Shake256 object.

impl Reset for Shake256

fn reset(&mut self)

Reset the state

impl Write for Shake256

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 Shake256

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 Shake256

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 Shake256

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

Derived Implementations

impl Clone for Shake256

fn clone(&self) -> Shake256

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