Struct blake2b_simd::Hash[][src]

pub struct Hash { /* fields omitted */ }

A finalized BLAKE2 hash, with constant-time equality.

Methods

impl Hash
[src]

Convert the hash to a byte slice. Note that if you're using BLAKE2b as a MAC, you need constant time equality, which &[u8] doesn't provide.

Convert the hash to a lowercase hexadecimal ArrayString.

Trait Implementations

impl Clone for Hash
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Hash
[src]

impl PartialEq for Hash
[src]

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 !=.

impl PartialEq<[u8]> for Hash
[src]

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 !=.

impl Eq for Hash
[src]

impl AsRef<[u8]> for Hash
[src]

Performs the conversion.

impl Debug for Hash
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Hash

impl Sync for Hash