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]

new constructs and initializes a new State.

update updates the State with data. update can be called multiple times in order to compute the hash from sequential chunks of the message.

finalize finalizes the state and returns the digest value. finalize consumes the State so that it cannot be accidentally reused.

Trait Implementations

impl Default for State
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for State

impl Sync for State