[gnutls-devel] GnuTLS | ECDSA signature verification fail with GnuTLS 3.6.5 (#664)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Thu Dec 27 16:09:26 CET 2018
There is a confusion between sign algorithm and hash algorithm. On [line 109](https://gitlab.com/snippets/1793236#L109) you call `gnutls_pubkey_verify_data2` with the hash algorithm `GNUTLS_DIG_SHA256`, while the function expects a sign algorithm such as `GNUTLS_SIGN_ECDSA_SHA256`.
I would suggest to use enum types instead of int to avoid such confusion.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/664#note_127530201
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181227/2ee40511/attachment.html>
More information about the Gnutls-devel
mailing list