diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-11-27 15:30:06 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-11-27 15:31:51 +0100 |
commit | 2def442c97f007f912395588c6d0bad016597e17 (patch) | |
tree | fadca7206f1326448ce3abc017db6360e281f191 /openpgp/src | |
parent | fb1cbfb34ad0a895c449a9bcdcf9c8f5e9298fd9 (diff) |
openpgp: Drop dependency on the digest crate.
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/crypto/backend/sha1cd.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/crypto/backend/sha1cd.rs b/openpgp/src/crypto/backend/sha1cd.rs index dd4664ca..2e00652d 100644 --- a/openpgp/src/crypto/backend/sha1cd.rs +++ b/openpgp/src/crypto/backend/sha1cd.rs @@ -15,13 +15,13 @@ impl Digest for sha1collisiondetection::Sha1CD { } fn update(&mut self, data: &[u8]) { - digest::Update::update(self, data); + sha1collisiondetection::Sha1CD::update(self, data); } fn digest(&mut self, digest: &mut [u8]) -> Result<()> { - let mut d = digest::Output::<sha1collisiondetection::Sha1CD>::default(); + let mut d = sha1collisiondetection::Output::default(); let r = self.finalize_into_dirty_cd(&mut d); - digest::Reset::reset(self); + self.reset(); let l = digest.len().min(d.len()); &mut digest[..l].copy_from_slice(&d[..l]); r.map_err(Into::into) |