1. 15 Oct, 2019 1 commit
    • Niels Möller's avatar
      Add modular square root for ecc-192. · 60833975
      Niels Möller authored
      * 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.
      60833975
  2. 26 Sep, 2019 3 commits
    • Niels Möller's avatar
      Move ecc_mod_pow_2kp1, and generalize it. · d0ab52a3
      Niels Möller authored
      * ecc-mod-pow.c (ecc_mod_pow_2k, ecc_mod_pow_2k_mul): New file, new
      functions. Based on the old ecc_mod_pow_2kp1.
      * ecc-internal.h: Declare new functions.
      (ecc_mod_pow_2kp1): New macro, calling ecc_mod_pow_2k_mul.
      * ecc-25519.c (ecc_mod_pow_2kp1): Deleted local function. Replaced
      by new functions + macro.
      * Makefile.in (hogweed_SOURCES): Add ecc-mod-pow.c.
      d0ab52a3
    • Niels Möller's avatar
      Rename ecc sqrt --> sqrt_ratio. · 037d9ce0
      Niels Möller authored
      * ecc-internal.h (ecc_mod_sqrt_ratio_func): Renamed typedef...
      (ecc_mod_sqrt_func): ... from old name.
      (struct ecc_modulo): Renamed corresponding function pointer to
      sqrt_ratio. Updated all uses.
      037d9ce0
    • Niels Möller's avatar
      ecc-internal.h comment fixes. · 35a58537
      Niels Möller authored
      35a58537
  3. 15 Sep, 2019 8 commits
  4. 14 Sep, 2019 1 commit
  5. 04 Sep, 2019 3 commits
  6. 03 Sep, 2019 2 commits
  7. 23 Aug, 2019 1 commit
  8. 22 Jul, 2019 1 commit
  9. 21 Jul, 2019 1 commit
  10. 10 Jul, 2019 4 commits
  11. 08 Jul, 2019 3 commits
  12. 02 Jul, 2019 4 commits
  13. 26 Jun, 2019 2 commits
  14. 25 Jun, 2019 1 commit
  15. 15 Jun, 2019 2 commits
  16. 06 Jun, 2019 2 commits
  17. 05 Jun, 2019 1 commit