[−][src]Trait bitcoin_hashes::HashEngine
A hashing engine which bytes can be serialized into. It is expected
to implement the io::Write
trait, but to never return errors under
any conditions.
Associated Types
type MidState
Byte array representing the internal state of the hash engine
Required methods
fn midstate(&self) -> Self::MidState
Outputs the midstate of the hash engine. This function should not be used directly unless you really know what you're doing.
fn block_size() -> usize
Length of the hash's internal block size, in bytes
Provided methods
fn input(&mut self, data: &[u8])
Add data to the hash engine without any error return type to deal with
Implementors
impl HashEngine for bitcoin_hashes::ripemd160::HashEngine
[src]
impl HashEngine for bitcoin_hashes::ripemd160::HashEngine
type MidState = [u8; 20]
fn midstate(&self) -> [u8; 20] | [src] |
fn block_size() -> usize | [src] |
fn input(&mut self, data: &[u8]) | [src] |
impl HashEngine for bitcoin_hashes::sha1::HashEngine
[src]
impl HashEngine for bitcoin_hashes::sha1::HashEngine
type MidState = [u8; 20]
fn midstate(&self) -> [u8; 20] | [src] |
fn block_size() -> usize | [src] |
fn input(&mut self, data: &[u8]) | [src] |
impl HashEngine for bitcoin_hashes::sha256::HashEngine
[src]
impl HashEngine for bitcoin_hashes::sha256::HashEngine
type MidState = [u8; 32]
fn midstate(&self) -> [u8; 32] | [src] |
fn block_size() -> usize | [src] |
fn input(&mut self, data: &[u8]) | [src] |
impl HashEngine for bitcoin_hashes::sha512::HashEngine
[src]
impl HashEngine for bitcoin_hashes::sha512::HashEngine
type MidState = [u8; 64]
fn midstate(&self) -> [u8; 64] | [src] |
fn block_size() -> usize | [src] |
fn input(&mut self, data: &[u8]) | [src] |
impl<T: Hash> HashEngine for HmacEngine<T>
[src]
impl<T: Hash> HashEngine for HmacEngine<T>