summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-03-26 16:26:39 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-03-26 16:30:56 +0100
commit06e488ca0963fbac50e62269a3d3050be325a788 (patch)
treeadec1a2d08f759e77d793d20c5d5a112a5e1ba53 /openpgp/src/crypto
parent81f5cbe9384eb92f2264d774a5d55bd70022b36f (diff)
openpgp: Add enum Key.
- Fixes #228.
Diffstat (limited to 'openpgp/src/crypto')
-rw-r--r--openpgp/src/crypto/hash.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/crypto/hash.rs b/openpgp/src/crypto/hash.rs
index f6861957..674245ba 100644
--- a/openpgp/src/crypto/hash.rs
+++ b/openpgp/src/crypto/hash.rs
@@ -4,6 +4,7 @@ use HashAlgorithm;
use packet::UserID;
use packet::UserAttribute;
use packet::Key;
+use packet::key::Key4;
use packet::Signature;
use packet::signature::{self, Signature4};
use Error;
@@ -175,7 +176,7 @@ impl Hash for UserAttribute {
}
}
-impl Hash for Key {
+impl Hash for Key4 {
/// Update the Hash with a hash of the key.
fn hash<H: nettle::Hash + Write>(&self, hash: &mut H) {
// We hash 8 bytes plus the MPIs. But, the len doesn't