Struct blake2_rfc::blake2s::Blake2sResult [] [src]

pub struct Blake2sResult { /* 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 Blake2sResult
[src]

[src]

Returns the contained hash result as a byte string.

[src]

Returns the length of the hash result.

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

Trait Implementations

impl Clone for Blake2sResult
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Blake2sResult
[src]

impl Debug for Blake2sResult
[src]

[src]

Formats the value using the given formatter.

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

[src]

Performs the conversion.

impl Eq for Blake2sResult
[src]

impl PartialEq for Blake2sResult
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.0.0
[src]

This method tests for !=.