1. 17 Mar, 2021 1 commit
    • Niels Möller's avatar
      Fix bug in ecc_ecdsa_verify. · 74ee0e82
      Niels Möller authored
      * ecc-ecdsa-verify.c (ecc_ecdsa_verify): Use ecc_mod_mul_canonical
      to compute the scalars used for ecc multiplication.
      * testsuite/ecdsa-verify-test.c (test_main): Add test case that
      triggers an assert on 64-bit platforms, without above fix.
      * testsuite/ecdsa-sign-test.c (test_main): Test case generating
      the same signature.
      
      (cherry picked from commit 2397757b)
      74ee0e82
  2. 20 Jan, 2021 1 commit
  3. 14 Nov, 2020 1 commit
    • Niels Möller's avatar
      Improve scratch usage in ecc_mod_inv. · 8ab71212
      Niels Möller authored
      * ecc-mod-inv.c (ecc_mod_inv): Use passed in scratch for all
      scratch needs, don't use memory after the result area.
      * ecc-ecdsa-sign.c (ecc_ecdsa_sign): Update invert call.
      * ecc-ecdsa-verify.c (ecc_ecdsa_verify): Likewise.
      * ecc-eh-to-a.c (ecc_eh_to_a): Likewise.
      * ecc-j-to-a.c (ecc_j_to_a): Likewise.
      * ecc-gostdsa-verify.c (ecc_gostdsa_verify): Likewise.
      * ecc-internal.h (ECC_MOD_INV_ITCH, ECC_J_TO_A_ITCH)
      (ECC_EH_TO_A_ITCH): Update accordingly, but no change in total
      scratch need.
      8ab71212
  4. 01 Nov, 2020 1 commit
    • Niels Möller's avatar
      Separate result area for ecc_mod_mul and ecc_mod_sqr. · 172448b0
      Niels Möller authored
      * ecc-mod-arith.c (ecc_mod_mul, ecc_mod_sqr): Separate argument
      for scratch area, reducing required size of result area. Update
      all callers to naïvely keep using result in scratch area.
      (ecc_mod_pow_2k, ecc_mod_pow_2k_mul): Simplified, also reducing
      required size of result area.
      172448b0
  5. 25 Apr, 2020 1 commit
  6. 15 Feb, 2020 1 commit
  7. 23 Sep, 2014 2 commits
  8. 22 Sep, 2014 2 commits
  9. 28 Aug, 2014 3 commits
  10. 23 Aug, 2014 1 commit
  11. 12 Apr, 2014 1 commit
  12. 26 Apr, 2013 1 commit
  13. 05 Apr, 2013 1 commit
  14. 18 Feb, 2013 1 commit