]> the.earth.li Git - onak.git/commitdiff
Fix keysize for Ed25519 to 255 bits
authorJonathan McDowell <noodles@earth.li>
Sat, 15 Aug 2015 09:24:58 +0000 (10:24 +0100)
committerJonathan McDowell <noodles@earth.li>
Sat, 15 Aug 2015 09:24:58 +0000 (10:24 +0100)
keyindex.c

index ae1bcf89b1501f3a3e5bda5663ddaa44905d20bf..bef41f42c41abcd1621834efd54c469b2acbed74 100644 (file)
@@ -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) &&