[][src]Struct ring::digest::Algorithm

pub struct Algorithm {
    pub output_len: usize,
    pub chaining_len: usize,
    pub block_len: usize,
    // some fields omitted
}

A digest algorithm.

Fields

output_len: usize

The length of a finalized digest.

chaining_len: usize

The size of the chaining value of the digest function, in bytes. For non-truncated algorithms (SHA-1, SHA-256, SHA-512), this is equal to output_len. For truncated algorithms (e.g. SHA-384, SHA-512/256), this is equal to the length before truncation. This is mostly helpful for determining the size of an HMAC key that is appropriate for the digest algorithm.

block_len: usize

The internal block length.

Trait Implementations

impl Eq for Algorithm[src]

impl PartialEq<Algorithm> for Algorithm[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Debug for Algorithm[src]

Auto Trait Implementations

impl Send for Algorithm

impl Sync for Algorithm

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]