]> granicus.if.org Git - neomutt/commitdiff
Fix calculation of fingerprints (and key IDs) for type 20 ElGamal
authorThomas Roessler <roessler@does-not-exist.org>
Sun, 3 Feb 2002 09:14:47 +0000 (09:14 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sun, 3 Feb 2002 09:14:47 +0000 (09:14 +0000)
keys.  Noted by Jason Harris <jharris@widowmaker.com>.

pgppubring.c

index 5cfd6a78739bd0a887dcdf381954bdd1b6df2062..c7cc1ad0a7e02510c077002de68637161ccc022d 100644 (file)
@@ -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);