From: Daiki Ueno <du...@redhat.com>

It turned out that the initial version of _dsa_compute_k was not
constant time with the input message.  In this version it is checked
with a valgrind-based check.

Also the ecdsa-sign-deterministic test has been reorganized using a
similar abstraction to struct nettle_mac in testutils.h.

Daiki Ueno (3):
  dsa: Add a function to find k deterministically
  ecdsa: Add support for deterministic signature generation
  dsa: Add support for deterministic signature generation

 Makefile.in                               |   6 +-
 dsa-compute-k.c                           | 179 +++++++++++++++++
 dsa-compute-k.h                           |  63 ++++++
 dsa-sign-deterministic.c                  | 107 ++++++++++
 dsa.h                                     |  12 ++
 ecdsa-sign-deterministic.c                |  74 +++++++
 ecdsa.h                                   |  11 ++
 testsuite/.gitignore                      |   2 +
 testsuite/.test-rules.make                |   6 +
 testsuite/Makefile.in                     |   4 +-
 testsuite/dsa-compute-k-test.c            | 127 ++++++++++++
 testsuite/dsa-test.c                      | 148 +++++++++++++-
 testsuite/ecdsa-sign-deterministic-test.c | 230 ++++++++++++++++++++++
 13 files changed, 965 insertions(+), 4 deletions(-)
 create mode 100644 dsa-compute-k.c
 create mode 100644 dsa-compute-k.h
 create mode 100644 dsa-sign-deterministic.c
 create mode 100644 ecdsa-sign-deterministic.c
 create mode 100644 testsuite/dsa-compute-k-test.c
 create mode 100644 testsuite/ecdsa-sign-deterministic-test.c

-- 
2.21.0

_______________________________________________
nettle-bugs mailing list
nettle-bugs@lists.lysator.liu.se
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to