Skip to content
  • Niels Möller's avatar
    Fix ECDSA verify corner case · 4eb5868c
    Niels Möller authored
    * ecc-ecdsa-verify.c (ecc_ecdsa_verify): Use ecc_nonsec_add_jjj,
    to produce correct result in a corner case where point addition
    needs to use point duplication. Also use ecc_j_to_a rather than
    ecc->h_to_a, since ecdsa supports only weierstrass curves.
    * ecc-gostdsa-verify.c (ecc_gostdsa_verify): Analogous change.
    
    * testsuite/ecdsa-verify-test.c (test_main): Add corresponding test.
    * testsuite/ecdsa-sign-test.c (test_main): And a test producing
    the problematic signature.
    4eb5868c
To find the state of this project's repository at the time of any of these versions, check out the tags.