#[repr(u8)]pub enum HashAlgorithm {
None = 0,
Md5 = 1,
Sha1 = 2,
Sha224 = 3,
Sha256 = 4,
Sha384 = 5,
Sha512 = 6,
Intrinsic = 8,
}
Available on crate feature
sct
only.Expand description
Hashing algorithm as defined in RFC 5246 section 7.4.1.4.1.
Variants§
None = 0
No algorithm.
Md5 = 1
MD5 algorithm.
Sha1 = 2
SHA1 algorithm.
Sha224 = 3
SHA224 algorithm.
Sha256 = 4
SHA256 algorithm.
Sha384 = 5
SHA384 algorithm.
Sha512 = 6
SHA512 algorithm.
Intrinsic = 8
Intrinsic algorithm.
Trait Implementations§
source§impl Debug for HashAlgorithm
impl Debug for HashAlgorithm
source§impl DeserializeBytes for HashAlgorithm
impl DeserializeBytes 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 ==
.source§impl SerializeBytes for &HashAlgorithm
impl SerializeBytes for &HashAlgorithm
source§impl SerializeBytes for HashAlgorithm
impl SerializeBytes for HashAlgorithm
source§impl Size for &HashAlgorithm
impl Size for &HashAlgorithm
fn tls_serialized_len(&self) -> usize
source§impl Size for HashAlgorithm
impl Size for HashAlgorithm
fn tls_serialized_len(&self) -> usize
impl StructuralPartialEq for HashAlgorithm
Auto Trait Implementations§
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