An in-progress SHA-1 hash operation.
This struct’s API is intentionally similar to
std::hash::Hasher in an
attempt at familiarity; however, it does not actually implement that trait because that trait
only permits 64-bit hash outputs, while SHA-1 has a 160-bit output.
Hasher can be cloned and copied. Doing so yields a second
Hasher which acts as if it has
had exactly the same sequence of bytes written to it as the original, but can freely diverge
from that point forward.
Constructs a new
Hasher does not yet contain any data.
Adds data to a
Returns the hash of the data written so far.
Hasher is still usable after this, and more data can be added if desired.
impl RefUnwindSafe for Hasher
impl UnwindSafe for Hasher
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.