From c1192c5239c8f0ad9bc4e118d250a9848424337a Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Sun, 3 Feb 2002 09:14:47 +0000 Subject: [PATCH] Fix calculation of fingerprints (and key IDs) for type 20 ElGamal keys. Noted by Jason Harris . --- pgppubring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgppubring.c b/pgppubring.c index 5cfd6a787..c7cc1ad0a 100644 --- a/pgppubring.c +++ b/pgppubring.c @@ -291,7 +291,7 @@ static pgp_key_t *pgp_parse_pgp3_key (unsigned char *buff, size_t l) if (alg >= 1 && alg <= 3) skip_bignum (buff, l, j, &j, 2); - else if (alg == 17 || alg == 16) + else if (alg == 17 || alg == 16 || alg == 20) skip_bignum (buff, l, j, &j, 1); pgp_make_pgp3_fingerprint (buff, j, digest); -- 2.40.0