pub enum Hash {
Sha256,
Sha384,
Sha512,
}Expand description
Hash function for padding and message hashing
Variants§
Implementations§
Source§impl Hash
impl Hash
Sourcepub fn new_sha256() -> Self
pub fn new_sha256() -> Self
Constructs a new Hash::Sha256.
Source§impl Hash
impl Hash
Sourcepub fn new_sha384() -> Self
pub fn new_sha384() -> Self
Constructs a new Hash::Sha384.
Source§impl Hash
impl Hash
Sourcepub fn new_sha512() -> Self
pub fn new_sha512() -> Self
Constructs a new Hash::Sha512.
Trait Implementations§
impl Eq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
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