summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/asymmetric.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-16 16:16:28 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-16 16:16:28 +0100
commit70cf33c2e495a51f208322923a9461524224c4d0 (patch)
tree051eb877479f64d9285d97a2f0345a3101028cd9 /openpgp/src/crypto/asymmetric.rs
parente3ca51fc146b7c335762c7e977ab736da9e79999 (diff)
openpgp: Move the high-level methods to packet::Signature.
- Signature4 is only a storage format. The high-level functionality should be implemented on the version enum.
Diffstat (limited to 'openpgp/src/crypto/asymmetric.rs')
-rw-r--r--openpgp/src/crypto/asymmetric.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs
index a92b18ec..76729ddb 100644
--- a/openpgp/src/crypto/asymmetric.rs
+++ b/openpgp/src/crypto/asymmetric.rs
@@ -306,9 +306,7 @@ impl<P: key::KeyParts, R: key::KeyRole> Key<P, R> {
}
/// Verifies the given signature.
- pub fn verify(&self,
- sig: &packet::signature::Signature4, // XXX: Should be Signature
- digest: &[u8]) -> Result<bool>
+ pub fn verify(&self, sig: &packet::Signature, digest: &[u8]) -> Result<bool>
{
use crate::PublicKeyAlgorithm::*;
use crate::crypto::mpis::{PublicKey, Signature};