diff options
author | Werner Koch <[email protected]> | 2019-05-13 17:01:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-05-13 17:01:28 +0000 |
commit | 484d6ba5896acfa3dcf73d9536bcf5e006579b5f (patch) | |
tree | 17b3355fb87dada6f1b5ab234329c79646d30e17 /g10/armor.c | |
parent | gpg: Cleanup use of make_keysig_packet. (diff) | |
download | gnupg-484d6ba5896acfa3dcf73d9536bcf5e006579b5f.tar.gz gnupg-484d6ba5896acfa3dcf73d9536bcf5e006579b5f.zip |
gpg: Change update_keysig_packet to replace SHA-1 by SHA-256.
* g10/sign.c (update_keysig_packet): Convert digest algo when needed.
--
Several gpg commands try to keep most properties of a key signature
when updating (i.e. creating a new version of a key signature). This
included the use of the current hash-algorithm. This patch changes
this so that SHA-1 or RMD160 are replaced by SHA-256 if
possible (i.e. for RSA signatures). Affected commands are for example
--quick-set-expire and --quick-set-primary-uid.
GnuPG-bug-id: 4508
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/armor.c')
0 files changed, 0 insertions, 0 deletions