-
- Downloads
Add modular square root for ecc-192.
* testsuite/ecc-sqrt-test.c (test_sqrt): New function. (test_sqrt_ratio): Renamed, from... (test_modulo): ... old name. (test_main): Call test_sqrt and test_sqrt_ratio, for those curves that support these operations. * ecc-192.c (ecc_192_zero_p): New function. (ecc_192_sqrt): New square root function, based on patch by Wim Lewis. * ecc-25519.c (ecc_25519_sqrt_ratio): Renamed, from... (ecc_25519_sqrt): ... old name. (_nettle_curve25519): Update curve definition. * ecc-internal.h (ecc_mod_sqrt_func): New typedef. (struct ecc_modulo): Add sqrt_ratio_itch and sqrt function pointer. Update all curve definitionns.
Showing
- ChangeLog 20 additions, 0 deletionsChangeLog
- ecc-192.c 73 additions, 1 deletionecc-192.c
- ecc-224.c 4 additions, 0 deletionsecc-224.c
- ecc-25519.c 10 additions, 6 deletionsecc-25519.c
- ecc-256.c 4 additions, 0 deletionsecc-256.c
- ecc-384.c 4 additions, 1 deletionecc-384.c
- ecc-521.c 4 additions, 0 deletionsecc-521.c
- ecc-internal.h 8 additions, 1 deletionecc-internal.h
- eddsa-decompress.c 1 addition, 1 deletioneddsa-decompress.c
- testsuite/ecc-sqrt-test.c 81 additions, 5 deletionstestsuite/ecc-sqrt-test.c
Loading
Please register or sign in to comment