oa::cryptography::Hasher

Incremental canonical 32-byte SHAKE-256 hasher.

StRust public API

Declaration

pub struct Hasher { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn update(&mut self, input: &[u8]) -> Result<()>
pub fn finalize(&mut self) -> Hash
pub fn reset(&mut self)

Associated Functions

pub fn new() -> Self
fn default() -> Hasher

Public Method Documentation

pub fn update(&mut self, input: &[u8]) -> Result<()>
No public source comment is attached to this declaration.
pub fn finalize( &mut self ) -> Hash
No public source comment is attached to this declaration.
pub fn reset( &mut self )
No public source comment is attached to this declaration.
pub fn new() -> Self
No public source comment is attached to this declaration.
fn default() -> Hasher
No public source comment is attached to this declaration.