From: Niels Möller Date: Wed, 27 Aug 2014 19:57:20 +0000 (+0200) Subject: New struct ecc_curve field, q_bit_size. X-Git-Tag: nettle_3.1rc1~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6af0cc0bb0767d99099c73c168c7cf152be8377;p=thirdparty%2Fnettle.git New struct ecc_curve field, q_bit_size. --- diff --git a/ChangeLog b/ChangeLog index 5154cee4..a472f78f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-08-27 Niels Möller + * ecc-internal.h (struct ecc_curve): New field q_bit_size. Updated + all instances. + * configure.ac: Bumped package version number to 3.1. (LIBHOGWEED_MAJOR): Bumped library version to 4.0. diff --git a/ecc-192.c b/ecc-192.c index 29ff7f6a..8cd4bd08 100644 --- a/ecc-192.c +++ b/ecc-192.c @@ -115,6 +115,7 @@ const struct ecc_curve nettle_secp_192r1 = 192, ECC_LIMB_SIZE, ECC_BMODP_SIZE, + 192, ECC_BMODQ_SIZE, USE_REDC, ECC_REDC_SIZE, diff --git a/ecc-224.c b/ecc-224.c index 8a99f0e3..bb66acce 100644 --- a/ecc-224.c +++ b/ecc-224.c @@ -59,6 +59,7 @@ const struct ecc_curve nettle_secp_224r1 = 224, ECC_LIMB_SIZE, ECC_BMODP_SIZE, + 224, ECC_BMODQ_SIZE, USE_REDC, ECC_REDC_SIZE, diff --git a/ecc-25519.c b/ecc-25519.c index 3cbc60ed..a2a814b8 100644 --- a/ecc-25519.c +++ b/ecc-25519.c @@ -237,6 +237,7 @@ const struct ecc_curve nettle_curve25519 = 255, ECC_LIMB_SIZE, ECC_BMODP_SIZE, + 253, ECC_BMODQ_SIZE, 0, /* No redc */ 0, diff --git a/ecc-256.c b/ecc-256.c index f888aafe..5c7de779 100644 --- a/ecc-256.c +++ b/ecc-256.c @@ -224,6 +224,7 @@ const struct ecc_curve nettle_secp_256r1 = 256, ECC_LIMB_SIZE, ECC_BMODP_SIZE, + 256, ECC_BMODQ_SIZE, USE_REDC, ECC_REDC_SIZE, diff --git a/ecc-384.c b/ecc-384.c index c20d8ab4..bd44366d 100644 --- a/ecc-384.c +++ b/ecc-384.c @@ -152,6 +152,7 @@ const struct ecc_curve nettle_secp_384r1 = 384, ECC_LIMB_SIZE, ECC_BMODP_SIZE, + 384, ECC_BMODQ_SIZE, USE_REDC, ECC_REDC_SIZE, diff --git a/ecc-521.c b/ecc-521.c index 821c77c7..62a33ca5 100644 --- a/ecc-521.c +++ b/ecc-521.c @@ -80,6 +80,7 @@ const struct ecc_curve nettle_secp_521r1 = 521, ECC_LIMB_SIZE, ECC_BMODP_SIZE, + 521, ECC_BMODQ_SIZE, USE_REDC, ECC_REDC_SIZE, diff --git a/ecc-internal.h b/ecc-internal.h index d9e10730..214b47a4 100644 --- a/ecc-internal.h +++ b/ecc-internal.h @@ -106,6 +106,7 @@ struct ecc_curve coordinates. */ unsigned short size; unsigned short Bmodp_size; + unsigned short q_bit_size; unsigned short Bmodq_size; unsigned short use_redc; /* +k if p+1 has k low zero limbs, -k if p-1 has k low zero