From: Daiki Ueno <[email protected]>

This series adds a variant of DSA/ECDSA signing functions that doesn't
require random source to generate signature.  The construction of the
random parameter k is implemented according to RFC 6979, which will be
part of FIPS 186-5:
https://csrc.nist.gov/CSRC/media/Presentations/NIST-Status-Update-on-Elliptic-Curves-and-Post-Qua/images-media/moody-dustin-threshold-crypto-workshop-March-2019.pdf

The motivation behind this is to make it easier to check the DSA/ECDSA
functionality in the circumstances where no proper random sources are
available, e.g., in the libary self-tests at early boot stage.

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                           | 169 ++++++++++++++++++++++
 dsa-compute-k.h                           |  63 ++++++++
 dsa-sign-deterministic.c                  | 107 ++++++++++++++
 dsa.h                                     |  12 ++
 ecdsa-sign-deterministic.c                |  78 ++++++++++
 ecdsa.h                                   |  11 ++
 testsuite/.gitignore                      |   2 +
 testsuite/.test-rules.make                |   6 +
 testsuite/Makefile.in                     |   4 +-
 testsuite/dsa-compute-k-test.c            |  85 +++++++++++
 testsuite/dsa-test.c                      | 148 ++++++++++++++++++-
 testsuite/ecdsa-sign-deterministic-test.c | 164 +++++++++++++++++++++
 13 files changed, 851 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.20.1

_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to