Struct blake2_rfc::blake2b::Blake2bResult [] [src]

pub struct Blake2bResult {
    // some fields omitted
}

Container for a hash result.

This container uses a constant-time comparison for equality. If a constant-time comparison is not necessary, the hash result can be extracted with the as_bytes method.

Methods

impl Blake2bResult

fn as_bytes(&self) -> &[u8]

Returns the contained hash result as a byte string.

fn len(&self) -> usize

Returns the length of the hash result.

This is the same value that was used to create the hash context.

Trait Implementations

impl AsRef<[u8]> for Blake2bResult

fn as_ref(&self) -> &[u8]

impl Eq for Blake2bResult

impl PartialEq for Blake2bResult

fn eq(&self, other: &Self) -> bool

fn ne(&self, other: &Rhs) -> bool

impl PartialEq<[u8]> for Blake2bResult

fn eq(&self, other: &[u8]) -> bool

fn ne(&self, other: &Rhs) -> bool

Derived Implementations

impl Debug for Blake2bResult

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for Blake2bResult

impl Clone for Blake2bResult

fn clone(&self) -> Blake2bResult

fn clone_from(&mut self, source: &Self)