Enum pgp::crypto::hash::HashAlgorithm
source · #[repr(u8)]pub enum HashAlgorithm {
None = 0,
MD5 = 1,
SHA1 = 2,
RIPEMD160 = 3,
SHA2_256 = 8,
SHA2_384 = 9,
SHA2_512 = 10,
SHA2_224 = 11,
SHA3_256 = 12,
SHA3_512 = 14,
Private10 = 110,
Other(u8),
}
Expand description
Available hash algorithms. Ref: https://tools.ietf.org/html/rfc4880.html#section-9.4
Variants§
None = 0
MD5 = 1
SHA1 = 2
RIPEMD160 = 3
SHA2_256 = 8
SHA2_384 = 9
SHA2_512 = 10
SHA2_224 = 11
SHA3_256 = 12
SHA3_512 = 14
Private10 = 110
Do not use, just for compatability with GnuPG.
Other(u8)
Implementations§
source§impl HashAlgorithm
impl HashAlgorithm
Trait Implementations§
source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
source§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
Returns a copy of the value. Read more
1.0.0 · 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 Default for HashAlgorithm
impl Default for HashAlgorithm
source§impl From<HashAlgorithm> for u8
impl From<HashAlgorithm> for u8
source§fn from(enum_value: HashAlgorithm) -> Self
fn from(enum_value: HashAlgorithm) -> Self
Converts to this type from the input type.
source§impl From<u8> for HashAlgorithm
impl From<u8> for HashAlgorithm
source§impl FromPrimitive for HashAlgorithm
impl FromPrimitive for HashAlgorithm
source§impl PartialEq for HashAlgorithm
impl PartialEq for HashAlgorithm
source§fn eq(&self, other: &HashAlgorithm) -> bool
fn eq(&self, other: &HashAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HashAlgorithm
impl DefaultIsZeroes 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 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