summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
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,
}