From 7a8915ce650bf0e5ea0c7f83c11979d6a9c549e4 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sat, 15 Aug 2015 10:24:58 +0100 Subject: [PATCH] Fix keysize for Ed25519 to 255 bits --- keyindex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyindex.c b/keyindex.c index ae1bcf8..bef41f4 100644 --- a/keyindex.c +++ b/keyindex.c @@ -107,7 +107,7 @@ unsigned int keylength(struct openpgp_packet *keydata) (keydata->data[13] == 0x47) && (keydata->data[14] == 0x0F) && (keydata->data[15] == 0x01)) { - length = 256; + length = 255; /* nistp256 / 1.2.840.10045.3.1.7 */ } else if ((keydata->data[6] == 8) && (keydata->data[7] == 0x2A) && -- 2.39.5