pub enum HashAlgorithm {
SHA256,
SHA384,
SHA512,
}Expand description
Hash algorithm enumeration
Variants§
Implementations§
Source§impl HashAlgorithm
impl HashAlgorithm
Sourcepub fn output_length(&self) -> usize
pub fn output_length(&self) -> usize
Get the output length of the hash algorithm (in bytes)
Sourcepub fn max_hkdf_output_length(&self) -> usize
pub fn max_hkdf_output_length(&self) -> usize
Get the maximum output length of HKDF (255 * hash_length)
Trait Implementations§
Source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
impl Copy for HashAlgorithm
Source§impl Debug for HashAlgorithm
impl Debug for HashAlgorithm
impl Eq for HashAlgorithm
Source§impl PartialEq for HashAlgorithm
impl PartialEq for HashAlgorithm
impl StructuralPartialEq for HashAlgorithm
Auto Trait Implementations§
impl Forget for HashAlgorithm
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