1. 31 Mar, 2020 1 commit
    • Niels Möller's avatar
      Rework setting of LD_LIBRARY_PATH for tests. · b3474802
      Niels Möller authored
      * testsuite/Makefile.in (check): Pass only TEST_SHLIB_DIR
      to the run-tests script, and leave setting of LD_LIBRARY_PATH and
      related variables to that script.
      * examples/Makefile.in (check): Likewise.
      
      * run-tests: Check TEST_SHLIB_DIR, and set up LD_LIBRARY_PATH and
      related member variables.
      
      * config.make.in (abs_top_builddir, TEST_SHLIB_DIR): New variables.
      b3474802
  2. 26 Mar, 2020 1 commit
  3. 14 Mar, 2020 1 commit
  4. 09 Mar, 2020 1 commit
  5. 08 Mar, 2020 1 commit
  6. 15 Feb, 2020 1 commit
  7. 09 Feb, 2020 4 commits
  8. 06 Feb, 2020 1 commit
  9. 05 Feb, 2020 1 commit
  10. 26 Jan, 2020 4 commits
  11. 25 Jan, 2020 1 commit
  12. 15 Jan, 2020 2 commits
  13. 10 Jan, 2020 1 commit
  14. 03 Jan, 2020 1 commit
  15. 02 Jan, 2020 4 commits
  16. 01 Jan, 2020 2 commits
  17. 30 Dec, 2019 1 commit
    • Niels Möller's avatar
      Reorganize eddsa, based on patch by Daiki Ueno. · 1a85646b
      Niels Möller authored
      * eddsa-internal.h (struct ecc_eddsa): New struct for eddsa
      parameters.
      * ed25519-sha512.c (_nettle_ed25519_sha512): New parameter struct.
      * eddsa-expand.c (_eddsa_expand_key): Replace input
      struct nettle_hash with struct ecc_eddsa, and generalize for
      ed448. Update all callers.
      * eddsa-sign.c (_eddsa_sign): Likewise.
      * eddsa-verify.c (_eddsa_verify): Likewise.
      * eddsa-compress.c (_eddsa_compress): Store sign bit in most
      significant bit of last byte, as specified by RFC 8032.
      * eddsa-decompress.c (_eddsa_decompress): Corresponding update.
      Also generalize to support ed448, and make validity checks
      stricter.
      * testsuite/eddsa-sign-test.c (test_ed25519_sign): New function.
      (test_main): Use it.
      * testsuite/eddsa-verify-test.c (test_ed25519): New function.
      (test_main): Use it.
      1a85646b
  18. 28 Dec, 2019 1 commit
  19. 25 Dec, 2019 4 commits
  20. 18 Dec, 2019 2 commits
  21. 17 Dec, 2019 1 commit
  22. 15 Dec, 2019 1 commit
  23. 14 Dec, 2019 1 commit
    • 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
  24. 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