Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
ff2c93c0
Commit
ff2c93c0
authored
Jul 11, 2014
by
Niels Möller
Browse files
New struct ecc_curve constant, edwards_root.
parent
b5b6bd9b
Changes
8
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
ff2c93c0
2014-07-11 Niels Möller <nisse@lysator.liu.se>
* ecc-internal.h (struct ecc_curve): New constant edwards_root.
* ecc-192.c (nettle_secp_192r1): Updated accordingly, additional
NULL pointer.
* ecc-224.c (nettle_secp_224r1): Likewise.
* ecc-256.c (nettle_secp_256r1): Likewise.
* ecc-384.c (nettle_secp_384r1): Likewise.
* ecc-521.c (nettle_secp_521r1): Likewise.
* ecc-25519.c (nettle_curve25519): Initialize new constant.
* eccdata.c (ecc_curve_init): For curve 25519, use correct
constant for edwards coordinate transform, and output the constant
as ecc_edwards.
...
...
ecc-192.c
View file @
ff2c93c0
...
...
@@ -122,6 +122,7 @@ const struct ecc_curve nettle_secp_192r1 =
ecc_q
,
ecc_g
,
ecc_redc_g
,
NULL
,
ecc_192_modp
,
ecc_generic_redc
,
ecc_192_modp
,
...
...
ecc-224.c
View file @
ff2c93c0
...
...
@@ -68,6 +68,7 @@ const struct ecc_curve nettle_secp_224r1 =
ecc_q
,
ecc_g
,
ecc_redc_g
,
NULL
,
ecc_224_modp
,
ecc_generic_redc
,
USE_REDC
?
ecc_generic_redc
:
ecc_224_modp
,
...
...
ecc-25519.c
View file @
ff2c93c0
...
...
@@ -75,6 +75,7 @@ const struct ecc_curve nettle_curve25519 =
ecc_q
,
ecc_g
,
ecc_redc_g
,
ecc_edwards
,
ecc_25519_modp
,
NULL
,
ecc_25519_modp
,
...
...
ecc-256.c
View file @
ff2c93c0
...
...
@@ -233,6 +233,7 @@ const struct ecc_curve nettle_secp_256r1 =
ecc_q
,
ecc_g
,
ecc_redc_g
,
NULL
,
ecc_256_modp
,
ecc_256_redc
,
USE_REDC
?
ecc_256_redc
:
ecc_256_modp
,
...
...
ecc-384.c
View file @
ff2c93c0
...
...
@@ -161,6 +161,7 @@ const struct ecc_curve nettle_secp_384r1 =
ecc_q
,
ecc_g
,
ecc_redc_g
,
NULL
,
ecc_384_modp
,
ECC_REDC_SIZE
!=
0
?
ecc_generic_redc
:
NULL
,
ecc_384_modp
,
...
...
ecc-521.c
View file @
ff2c93c0
...
...
@@ -89,6 +89,7 @@ const struct ecc_curve nettle_secp_521r1 =
ecc_q
,
ecc_g
,
ecc_redc_g
,
NULL
,
ecc_521_modp
,
ecc_generic_redc
,
ecc_521_modp
,
...
...
ecc-internal.h
View file @
ff2c93c0
...
...
@@ -107,6 +107,9 @@ struct ecc_curve
const
mp_limb_t
*
g
;
/* Generator with coordinates in Montgomery form. */
const
mp_limb_t
*
redc_g
;
/* If non-NULL, the constant needed for transformation to the
equivalent Edwards curve. */
const
mp_limb_t
*
edwards_root
;
ecc_mod_func
*
modp
;
ecc_mod_func
*
redc
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment