Struct bitcoin_hashes::sha256::HashEngine [−][src]
pub struct HashEngine { /* fields omitted */ }
Expand description
Engine to compute SHA256 hash function
Implementations
Create a new HashEngine from a midstate.
Be aware that this method panics when [length] is not a multiple of the block size.
Trait Implementations
Outputs the midstate of the hash engine. This function should not be used directly unless you really know what you’re doing. Read more
Length of the hash’s internal block size, in bytes
Return the number of bytes already n_bytes_hashed(inputted)
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
Write a buffer into this writer, returning how many bytes were written. Read more
Attempts to write an entire buffer into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl RefUnwindSafe for HashEngine
impl Send for HashEngine
impl Sync for HashEngine
impl Unpin for HashEngine
impl UnwindSafe for HashEngine
Blanket Implementations
Mutably borrows from an owned value. Read more