pub enum HashAlgorithm {
Sha256,
Sha384,
Sha512,
Sha512_256,
Sha3_256,
Sha3_384,
Sha3_512,
Blake3,
}Expand description
Hash algorithm selector used by HashBuilder.
Covers every algorithm the builder can construct.
Variants§
Sha256
SHA-256 (FIPS 180-4).
Sha384
SHA-384 (FIPS 180-4).
Sha512
SHA-512 (FIPS 180-4).
Sha512_256
SHA-512/256 truncated (FIPS 180-4 §6.7).
Sha3_256
SHA3-256 (FIPS 202).
Sha3_384
SHA3-384 (FIPS 202).
Sha3_512
SHA3-512 (FIPS 202).
Blake3
BLAKE3 (32-byte output).
Implementations§
Source§impl HashAlgorithm
impl HashAlgorithm
Sourcepub const fn output_len(self) -> usize
pub const fn output_len(self) -> usize
Digest output length in bytes for this algorithm.
Trait Implementations§
Source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
Source§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HashAlgorithm
impl Debug for HashAlgorithm
Source§impl PartialEq for HashAlgorithm
impl PartialEq for HashAlgorithm
Source§fn eq(&self, other: &HashAlgorithm) -> bool
fn eq(&self, other: &HashAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HashAlgorithm
impl Eq for HashAlgorithm
impl StructuralPartialEq for HashAlgorithm
Auto Trait Implementations§
impl Freeze for HashAlgorithm
impl RefUnwindSafe for HashAlgorithm
impl Send for HashAlgorithm
impl Sync for HashAlgorithm
impl Unpin for HashAlgorithm
impl UnsafeUnpin for HashAlgorithm
impl UnwindSafe for HashAlgorithm
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