Struct blake2b_simd::Hash [−][src]
pub struct Hash { /* fields omitted */ }
Expand description
A finalized BLAKE2 hash, with constant-time equality.
Implementations
Convert the hash to a byte slice. Note that if you’re using BLAKE2 as a MAC, you need
constant time equality, which &[u8]
doesn’t provide.
Convert the hash to a byte array. Note that if you’re using BLAKE2 as a
MAC, you need constant time equality, which arrays don’t provide. This
panics in debug mode if the length of the hash isn’t OUTBYTES
.
Convert the hash to a lowercase hexadecimal
ArrayString
.
Trait Implementations
This implementation is constant time, if the slice is the same length as the hash.
This implementation is constant time, if the two hashes are the same length.