pub enum Hashing {
Sha1,
Sha256,
Sha384,
Sha512,
Sha512_256,
}Expand description
The hashing algorithm. SHA-1 and SHA-2 algorithms are supported.
Variants§
Sha1
The SHA-1 hash algorithm. Should generally be avoided unless working with legacy software.
Sha256
The SHA-2 256 bit hash algorithm.
Sha384
The SHA-2 384 bit hash algorithm.
Sha512
The SHA-2 512 bit hash algorithm.
Sha512_256
The SHA-2 512_256 bit hash algorithm. Uses SHA-512 but returns only 256 bits.
Implementations§
Source§impl Hashing
impl Hashing
Sourcepub fn new_context(&self) -> HashContext
pub fn new_context(&self) -> HashContext
Creates a new instance of a HashContext to be used with the selected Hashing algorithm.
Trait Implementations§
impl Eq for Hashing
impl StructuralPartialEq for Hashing
Auto Trait Implementations§
impl Freeze for Hashing
impl RefUnwindSafe for Hashing
impl Send for Hashing
impl Sync for Hashing
impl Unpin for Hashing
impl UnwindSafe for Hashing
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