pub enum Algorithm {
Md5,
Md5Sess,
Sha256,
Sha256Sess,
Sha512_256,
Sha512_256Sess,
}Expand description
Which digest algorithm a challenge asks for.
Variants§
Md5
RFC 2617’s original, and still what most registrars offer.
Md5Sess
MD5 with the session variant of HA1.
Sha256
RFC 7616’s preferred algorithm.
Sha256Sess
SHA-256 with the session variant of HA1.
Sha512_256
RFC 8760’s addition: SHA-512/256, the truncated SHA-512 variant.
Not SHA-512 truncated by hand — SHA-512/256 is a distinct function with its own initial values (FIPS 180-4 §5.3.6). Hashing with SHA-512 and taking the first half would produce a different digest and fail against every peer.
Sha512_256Sess
SHA-512/256 with the session variant of HA1.
Implementations§
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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