pub struct InsecureSha1Digest(/* private fields */);
👎Deprecated: SHA-1 is considered insecure
Expand description
INSECURE: The digest output by the SHA-1 hash function.
§Security
SHA-1 is considered insecure, and should only be used for compatibility with legacy applications.
Trait Implementations§
Source§impl Debug for InsecureSha1Digest
impl Debug for InsecureSha1Digest
Source§impl Digest for InsecureSha1Digest
impl Digest for InsecureSha1Digest
Source§const DIGEST_LEN: usize = 20usize
const DIGEST_LEN: usize = 20usize
The length in bytes of this digest.
Source§fn from_bytes(bytes: Self::Bytes) -> Self
fn from_bytes(bytes: Self::Bytes) -> Self
Constructs a new digest from bytes.
Source§impl Display for InsecureSha1Digest
impl Display for InsecureSha1Digest
Source§impl PartialEq for InsecureSha1Digest
impl PartialEq for InsecureSha1Digest
impl Eq for InsecureSha1Digest
Auto Trait Implementations§
impl Freeze for InsecureSha1Digest
impl RefUnwindSafe for InsecureSha1Digest
impl Send for InsecureSha1Digest
impl Sync for InsecureSha1Digest
impl Unpin for InsecureSha1Digest
impl UnwindSafe for InsecureSha1Digest
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