Home GnuPG

Implement deterministic ECDSA as specified by rfc-6979.
6e0a9786637dUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Jul 29 2013, 3:09 PM
Parents
rC1cfa79aabc5d: Implement deterministic DSA as specified by rfc-6979.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC6e0a9786637d: Implement deterministic ECDSA as specified by rfc-6979. (authored by Werner Koch <wk@gnupg.org>).Jul 29 2013, 3:09 PM