Implement deterministic ECDSA as specified by rfc-6979.
authorWerner Koch <wk@gnupg.org>
Mon, 29 Jul 2013 13:09:33 +0000 (15:09 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 29 Jul 2013 13:09:33 +0000 (15:09 +0200)
commit6e0a9786637d649b48aae0e611a12e12beef9b3b
treebb0a78af045566623d2f94ae037faa0c888b424c
parent1cfa79aabc5d0fd8d124901054475e90ab7d9cde
Implement deterministic ECDSA as specified by rfc-6979.

* cipher/ecc.c (sign): Add args FLAGS and HASHALGO.  Convert an opaque
MPI as INPUT.  Implement rfc-6979.
(ecc_sign): Remove the opaque MPI code and pass FLAGS to sign.
(verify): Do not allocate and compute Y; it is not used.
(ecc_verify): Truncate the hash value if needed.
* tests/dsa-rfc6979.c (check_dsa_rfc6979): Add ECDSA test cases.

Signed-off-by: Werner Koch <wk@gnupg.org>
NEWS
cipher/ecc.c
tests/dsa-rfc6979.c