Struct sodiumoxide::crypto::hash::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]

[src]

new constructs and initializes a new State.

[src]

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

[src]

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]

[src]

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