Home GnuPG
Diffusion GnuPG 60f384592144

gpg: Cache a once computed fingerprint in PKT_public_key.

Description

gpg: Cache a once computed fingerprint in PKT_public_key.

* g10/packet.h (PKT_public_key): Add fields fpr and fprlen.
* g10/keyid.c (do_fingerprint_md): Remove.
(compute_fingerprint): New.
(keyid_from_pk): Simplify.
(fingerprint_from_pk): Simplify.
(hexfingerprint): Avoid using extra array.

This is similar to what we are doing with the keyid for a long time.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 12 2019, 11:11 AM
Parents
rG1b1f649deaeb: gpg: Accept also armored data from the WKD.
Branches
Unknown
Tags
Unknown