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 PartialEq for Algorithm
[src]
impl PartialEq for Algorithm
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Algorithm
[src]
impl Eq for Algorithm
impl Debug for Algorithm
[src]
impl Debug for Algorithm