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/crypto/mod.rs | |
parent | a5548dc2e4db5b4a5469e7b320f37f89e32bb1b3 (diff) |
openpgp: Introduce an abstraction for hash contexts.
- See #302.
Diffstat (limited to 'openpgp/src/crypto/mod.rs')
-rw-r--r-- | openpgp/src/crypto/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/mod.rs b/openpgp/src/crypto/mod.rs index 8a37e509..36d6e921 100644 --- a/openpgp/src/crypto/mod.rs +++ b/openpgp/src/crypto/mod.rs @@ -4,7 +4,7 @@ use std::io::Read; use std::ops::{Deref, DerefMut}; use std::fmt; -use nettle::{self, Random, Yarrow}; +use nettle::{Random, Yarrow}; use constants::HashAlgorithm; use Result; @@ -158,7 +158,7 @@ impl fmt::Debug for Password { /// /// This is useful when verifying detached signatures. pub fn hash_file<R: Read>(reader: R, algos: &[HashAlgorithm]) - -> Result<Vec<(HashAlgorithm, Box<nettle::Hash>)>> + -> Result<Vec<(HashAlgorithm, hash::Context)>> { use std::mem; |