diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-11-16 14:50:58 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-11-24 13:27:51 +0100 |
commit | 429358370ad6ec8a00b4fd97c723533ceedb4f40 (patch) | |
tree | 55713fc0bc506d638aefeaa1959b969490a7fed4 /openpgp/src/cert.rs | |
parent | fbbe3cf4ca6b6b1881160925f869065e8f3df58e (diff) |
openpgp: Move the compound hashing functions to SignatureFields.
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r-- | openpgp/src/cert.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs index 65a47486..3c4a34ee 100644 --- a/openpgp/src/cert.rs +++ b/openpgp/src/cert.rs @@ -1484,8 +1484,7 @@ impl Cert { // Use hash prefix as heuristic. let key = self.primary.key(); match sig.hash_algo().context().and_then(|mut ctx| { - Signature::$hash_method(&mut ctx, &sig, key, - $($verify_args),*); + sig.$hash_method(&mut ctx, key, $($verify_args),*); ctx.into_digest() }) { Ok(hash) => { @@ -1712,8 +1711,8 @@ impl Cert { let key = self.primary.key(); if let Ok(hash) = sig.hash_algo().context() .and_then(|mut ctx| { - Signature::$hash_method(&mut ctx, &sig, key, - $($verify_args),*); + sig.$hash_method(&mut ctx, key, + $($verify_args),*); ctx.into_digest() }) { |