summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-11-17 16:54:32 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-12-07 16:37:57 +0100
commitd05f6cecbaeda0be9eae6a80517c1839d581545e (patch)
tree6af2ad42f85b623022056c36d5ffa5ec5e2283e5 /openpgp/src/serialize/stream.rs
parent3b88cd1725bdded57c2ff845db5d471d2da63e6a (diff)
openpgp: Drop hash::Context in favor of a pub trait hash::Digest.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs
index 0cb96178..382ca86a 100644
--- a/openpgp/src/serialize/stream.rs
+++ b/openpgp/src/serialize/stream.rs
@@ -639,7 +639,7 @@ pub struct Signer<'a> {
detached: bool,
template: signature::SignatureBuilder,
creation_time: Option<SystemTime>,
- hash: crypto::hash::Context,
+ hash: Box<dyn crypto::hash::Digest>,
cookie: Cookie,
position: u64,
}
@@ -2077,7 +2077,7 @@ pub struct Encryptor<'a> {
passwords: Vec<Password>,
sym_algo: SymmetricAlgorithm,
aead_algo: Option<AEADAlgorithm>,
- hash: crypto::hash::Context,
+ hash: Box<dyn crypto::hash::Digest>,
cookie: Cookie,
}