diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-07-02 16:11:25 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-07-02 16:11:25 +0200 |
commit | 9761b660b508d9440b192616f70c1a2d45cbbcb9 (patch) | |
tree | e2539088fc683564fad4ca1f29a94f00387477fe /openpgp/src/parse | |
parent | a5548dc2e4db5b4a5469e7b320f37f89e32bb1b3 (diff) |
openpgp: Introduce an abstraction for hash contexts.
- See #302.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r-- | openpgp/src/parse/hashed_reader.rs | 2 | ||||
-rw-r--r-- | openpgp/src/parse/parse.rs | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/openpgp/src/parse/hashed_reader.rs b/openpgp/src/parse/hashed_reader.rs index 6e4f646b..f9df0a4d 100644 --- a/openpgp/src/parse/hashed_reader.rs +++ b/openpgp/src/parse/hashed_reader.rs @@ -3,8 +3,6 @@ use std::cmp; use std::mem; use std::fmt; -use nettle::Hash; - use buffered_reader::BufferedReader; use buffered_reader::buffered_reader_generic_read_impl; diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs index d2e8fda4..200c1fe0 100644 --- a/openpgp/src/parse/parse.rs +++ b/openpgp/src/parse/parse.rs @@ -10,8 +10,6 @@ use std::path::Path; use time; use failure; -use nettle; - use ::buffered_reader::*; use { @@ -478,7 +476,7 @@ pub(crate) struct SignatureGroup { ops_count: usize, /// Maps hash algorithms to hash contexts. - pub(crate) hashes: HashMap<HashAlgorithm, Box<nettle::Hash>>, + pub(crate) hashes: HashMap<HashAlgorithm, crypto::hash::Context>, } impl fmt::Debug for SignatureGroup { |