Struct blake2_c::Digest[][src]

pub struct Digest {
    pub bytes: ArrayVec<[u8; 64]>,
}

A finalized BLAKE2 hash.

Digest supports constant-time equality checks, for cases where BLAKE2 is being used as a MAC. It uses an ArrayVec to hold various digest lengths without needing to allocate on the heap.

Fields

Methods

impl Digest
[src]

Convert the digest to a hexadecimal string. Because we know the maximum length of the string in advance (2 * OUTBYTES), we can use an ArrayString to avoid allocating.

Trait Implementations

impl Clone for Digest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Digest
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Digest
[src]

This implementation is constant time, if the two digests 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 Eq for Digest
[src]

Auto Trait Implementations

impl Send for Digest

impl Sync for Digest