From 70cf33c2e495a51f208322923a9461524224c4d0 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 16 Jan 2020 16:16:28 +0100 Subject: 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. --- openpgp/src/crypto/asymmetric.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'openpgp/src/crypto/asymmetric.rs') 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 Key { } /// Verifies the given signature. - pub fn verify(&self, - sig: &packet::signature::Signature4, // XXX: Should be Signature - digest: &[u8]) -> Result + pub fn verify(&self, sig: &packet::Signature, digest: &[u8]) -> Result { use crate::PublicKeyAlgorithm::*; use crate::crypto::mpis::{PublicKey, Signature}; -- cgit v1.2.3