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

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

A digest algorithm.

C analog: `EVP_MD`

## Fields

`output_len: usize`

C analog: `EVP_MD_size`

`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`

C analog: `EVP_MD_block_size`

## Trait Implementations

### `impl Debug for Algorithm`
[src]

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

Formats the value using the given formatter.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)