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

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This implementation is constant time, if the slice is the same length as the hash.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This implementation is constant time, if the two hashes are the same length.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.