pub struct InsecureSha1 { /* private fields */ }Expand description
The insecure SHA-1 hash algorithm.
Some existing protocols depend on SHA-1 and so it is provided here, but it does not provide collision resistance and should not be used if at all avoidable. Use SHA-256 instead.
Implementations§
Source§impl InsecureSha1
impl InsecureSha1
Trait Implementations§
Source§impl Algorithm for InsecureSha1
impl Algorithm for InsecureSha1
Source§fn digest_to_vec(self) -> Vec<u8>
fn digest_to_vec(self) -> Vec<u8>
Finish the hashing and return the digest.
Source§const OUTPUT_LEN: usize
const OUTPUT_LEN: usize
The size of the resulting digest.
Source§impl Clone for InsecureSha1
impl Clone for InsecureSha1
Source§fn clone(&self) -> InsecureSha1
fn clone(&self) -> InsecureSha1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InsecureSha1
impl RefUnwindSafe for InsecureSha1
impl Send for InsecureSha1
impl Sync for InsecureSha1
impl Unpin for InsecureSha1
impl UnsafeUnpin for InsecureSha1
impl UnwindSafe for InsecureSha1
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