Struct tox::toxcore::crypto_core::sha512::State [−][src]
pub struct State(_);
State contains the state for multi-part (streaming) hash computations. This allows the caller
to process a message as a sequence of multiple chunks.
Methods
impl State[src]
impl Statepub fn new() -> State[src]
pub fn new() -> Statenew constructs and initializes a new State.
pub fn update(&mut self, data: &[u8])[src]
pub fn update(&mut self, data: &[u8])update updates the State with data. update can be called multiple times in order
to compute the hash from sequential chunks of the message.
pub fn finalize(self) -> Digest[src]
pub fn finalize(self) -> Digestfinalize finalizes the state and returns the digest value. finalize consumes the
State so that it cannot be accidentally reused.