pub enum HashAlg {
SHA1,
SHA256,
SHA384,
SHA512,
}Expand description
Defines which hash algorithm to be used in certificate signing
Variants§
SHA1
SHA-1 (Secure Hash Algorithm 1), now considered weak and generally discouraged for new certificates.
SHA256
SHA-256 (part of SHA-2 family)
SHA384
SHA-384 (SHA-2 family), offers stronger security and is often used with larger key sizes.
SHA512
SHA-512 (SHA-2 family), provides the highest bit-length hash in the SHA-2 family.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HashAlg
impl RefUnwindSafe for HashAlg
impl Send for HashAlg
impl Sync for HashAlg
impl Unpin for HashAlg
impl UnsafeUnpin for HashAlg
impl UnwindSafe for HashAlg
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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