1. 14 Dec, 2019 3 commits
    • Niels Möller's avatar
      Comment fixes for ecc_add_ehh · e21efefa
      Niels Möller authored
      e21efefa
    • Niels Möller's avatar
      Comment fixes for ecc_add_eh · c87bd88c
      Niels Möller authored
      c87bd88c
    • Niels Möller's avatar
      New function ecc_mul_m. · b33eea3b
      Niels Möller authored
      * curve25519-mul.c (curve25519_mul): Use ecc_mul_m.
      * curve448-mul.c (curve448_mul): Likewise.
      
      * ecc-mul-m.c (ecc_mul_m): New file and function. Implements
      multipliction for curves in Montgomery representation, as used for
      curve25519 and curve448. Extracted from curve25519_mul.
      * ecc-internal.h (ecc_mul_m): Declare.
      (ECC_MUL_M_ITCH): New macro.
      * Makefile.in (hogweed_SOURCES): Add ecc-mul-m.c.
      b33eea3b
  2. 13 Dec, 2019 1 commit
  3. 09 Dec, 2019 2 commits
    • Niels Möller's avatar
      Revert itch macro changes. · a5e0d463
      Niels Möller authored
      We now have h_to_a_itch <= mul_itch, mul_g_itch. Add asserts at a few
      places relying on this.
      (ECC_ECDSA_KEYGEN_ITCH, ECC_MAX): Delete macros.
      (ECC_ECDSA_SIGN_ITCH): Revert previous change.
      a5e0d463
    • Niels Möller's avatar
      Trim scratch usage of curve448 operations. · b5ae97a8
      Niels Möller authored
      * ecc-448.c (ecc_mod_pow_446m224m1): Reduce scratch space from 9*n
      to 6*n.
      (ECC_448_INV_ITCH, ECC_448_SQRT_ITCH): Reduce accordingly.
      * curve448-mul.c (curve448_mul): Reduce allocation from 14*n to 12*n.
      b5ae97a8
  4. 08 Dec, 2019 1 commit
    • Niels Möller's avatar
      x86_64 implementation of nettle_ecc_curve448_modp · d13bb312
      Niels Möller authored
      * x86_64/ecc-curve448-modp.asm (nettle_ecc_curve448_modp): New
      assembly function.
      * ecc-448.c (ecc_448_modp) [HAVE_NATIVE_ecc_curve448_modp]: Use
      native nettle_ecc_curve448_modp if available.
      * configure.ac (asm_hogweed_optional_list): Add ecc-curve448-modp.asm.
      (HAVE_NATIVE_ecc_curve448_modp): New config.h define.
      d13bb312
  5. 07 Dec, 2019 1 commit
    • Niels Möller's avatar
      Delete tests and code for ecdsa over curve25519. · bfe24f58
      Niels Möller authored
      * ecc-eh-to-a.c (ecc_eh_to_a): Require op == 0, delete code only
      used for non-standard ecdsa over curve25519.
      * testsuite/ecdsa-sign-test.c (test_main): Delete test of ecdsa
      over curve25519.
      * testsuite/ecdsa-verify-test.c (test_main): Likewise.
      * testsuite/ecdsa-keygen-test.c (test_main): Exclude curve25519
      from test.
      bfe24f58
  6. 05 Dec, 2019 1 commit
    • Niels Möller's avatar
      Fix configure check for __builtin_bswap64. · 9f4180d6
      Niels Möller authored
      * configure.ac: Use AC_TRY_LINK rather than AC_TRY_COMPILE to
      check for __builtin_bswap64. Since calling an non-existing
      function typically results in a warning only at compile time, but
      fails at link time. Patch contributed by by George Koehler.
      9f4180d6
  7. 04 Dec, 2019 1 commit
  8. 03 Dec, 2019 1 commit
  9. 01 Dec, 2019 1 commit
  10. 30 Nov, 2019 1 commit
    • Daiki Ueno's avatar
      Implement Curve448 primitives · 389c787e
      Daiki Ueno authored
      This patch adds the necessary primitives for "curve448", defined in
      RFC 7748.  Those primitives are namely: addition, doubling, scalar
      multiplication of the generator or an arbitrary point, inversion, and
      square root.
      389c787e
  11. 24 Nov, 2019 1 commit
  12. 21 Nov, 2019 2 commits
  13. 05 Oct, 2019 3 commits
  14. 01 Oct, 2019 3 commits
  15. 30 Sep, 2019 2 commits
  16. 26 Sep, 2019 1 commit
  17. 15 Sep, 2019 8 commits
  18. 14 Sep, 2019 1 commit
  19. 04 Sep, 2019 3 commits
  20. 03 Sep, 2019 2 commits
  21. 23 Aug, 2019 1 commit