summaryrefslogtreecommitdiffstats
path: root/openpgp/src
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src')
-rw-r--r--openpgp/src/crypto/backend/sha1cd.rs6
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)