pub enum Hash {
Sha1,
Sha256,
Sha384,
Sha512,
}Expand description
The digest algorithms this verifier can compute.
Variants§
Implementations§
Source§impl Hash
impl Hash
Sourcepub const fn len(self) -> usize
pub const fn len(self) -> usize
Output length in bytes. (Never zero, so there is no is_empty to
pair it with; the lint that asks for one is about containers.)
Sourcepub const fn digest_info_prefix(self) -> &'static [u8] ⓘ
pub const fn digest_info_prefix(self) -> &'static [u8] ⓘ
The DigestInfo DER prefix (RFC 8017 §9.2 note 1): the bytes that
precede the raw hash inside a PKCS#1 v1.5 encoded message.
Trait Implementations§
impl Copy for Hash
impl Eq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl Forget for Hash
impl Freeze for Hash
impl Move for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnsafeUnpin 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