pub struct Algorithm {
pub output_len: usize,
pub chaining_len: usize,
pub block_len: usize,
/* private fields */
}Expand description
A digest algorithm.
Fields§
§output_len: usizeThe length of a finalized digest.
chaining_len: usize👎Deprecated
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-224, 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.
This function isn’t actually used in aws-lc-rs, and is only kept for compatibility with the original ring implementation.
block_len: usizeThe internal block length.
Trait Implementations§
source§impl PartialEq<Algorithm> for Algorithm
impl PartialEq<Algorithm> for Algorithm
impl Eq for Algorithm
impl Send for Algorithm
Auto Trait Implementations§
impl RefUnwindSafe for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more