summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/mdc.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-07-02 16:11:25 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-07-02 16:11:25 +0200
commit9761b660b508d9440b192616f70c1a2d45cbbcb9 (patch)
treee2539088fc683564fad4ca1f29a94f00387477fe /openpgp/src/packet/mdc.rs
parenta5548dc2e4db5b4a5469e7b320f37f89e32bb1b3 (diff)
openpgp: Introduce an abstraction for hash contexts.
- See #302.
Diffstat (limited to 'openpgp/src/packet/mdc.rs')
-rw-r--r--openpgp/src/packet/mdc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/packet/mdc.rs b/openpgp/src/packet/mdc.rs
index 2e7a7707..9a0b7d6c 100644
--- a/openpgp/src/packet/mdc.rs
+++ b/openpgp/src/packet/mdc.rs
@@ -1,4 +1,4 @@
-use nettle;
+use crypto;
use packet;
use Packet;
@@ -67,8 +67,8 @@ impl From<[u8; 20]> for MDC {
}
}
-impl From<Box<nettle::Hash>> for MDC {
- fn from(mut hash: Box<nettle::Hash>) -> Self {
+impl From<crypto::hash::Context> for MDC {
+ fn from(mut hash: crypto::hash::Context) -> Self {
let mut value : [u8; 20] = Default::default();
hash.digest(&mut value[..]);
value.into()