diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-07-05 12:14:06 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-07-07 15:29:28 +0200 |
commit | eebc463f41560d54defe3bcd6aac2ddc365bde0f (patch) | |
tree | 294569eb4e7b4cddd5339cc93ebff9b1ba40a173 | |
parent | c764aec48599ddfcdb41547e57a899bc87f67160 (diff) |
openpgp: Reuse computed value.
-rw-r--r-- | openpgp/src/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index b6289219..aab87ee4 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -2013,7 +2013,7 @@ impl OnePassSig3 { // against when we get to the Signature packet. let mut algos = Vec::new(); if hash_algo.is_supported() { - algos.push(HashingMode::for_signature(hash_algo, typ)); + algos.push(need_hash); } // We can't push the HashedReader on the BufferedReader stack: |