summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/key.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet/key.rs')
-rw-r--r--openpgp/src/packet/key.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet/key.rs b/openpgp/src/packet/key.rs
index 9479caec..148061d8 100644
--- a/openpgp/src/packet/key.rs
+++ b/openpgp/src/packet/key.rs
@@ -1163,9 +1163,9 @@ impl<P, R> Key4<P, R>
self.hash(&mut h);
- let mut digest = vec![0u8; h.digest_size()];
+ let mut digest = [0u8; 20];
let _ = h.digest(&mut digest);
- Fingerprint::from_bytes(digest.as_slice())
+ Fingerprint::V4(digest)
}).clone()
}