Commit a6af0cc0 authored by Niels Möller's avatar Niels Möller

New struct ecc_curve field, q_bit_size.

parent 7a806262
2014-08-27 Niels Möller <nisse@lysator.liu.se>
* 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.
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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
......
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