diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-16 16:16:28 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-16 16:16:28 +0100 |
commit | 70cf33c2e495a51f208322923a9461524224c4d0 (patch) | |
tree | 051eb877479f64d9285d97a2f0345a3101028cd9 /openpgp/src/crypto/asymmetric.rs | |
parent | e3ca51fc146b7c335762c7e977ab736da9e79999 (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.rs | 4 |
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}; |