Commit 7f6c0ad7 authored by Thomas Roessler's avatar Thomas Roessler

Correctly calculate fingerprints for type 20 ElGamal keys. Noted by

Jason Harris <jharris@widomaker.com>.
parent 0c7a856e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment