Trouble to verify ECDSA signature, NIST P-256

Yann Garcia garcia.yann at gmail.com
Mon Nov 26 08:26:09 CET 2018


Hello,

Oh yes, forgot it, sorry!
In my sample, q is the public key.

Thanks a lot

Best regards,

Yann Garcia
Senior Software Engineer
Microsoft MCAD.net Certified
**************************************
FSCOM SARL
Le Montespan B2
6,
<https://maps.google.com/?q=6,%C2%A0+Avenue+des+Alpes&entry=gmail&source=g>
Avenue des Alpes
<https://maps.google.com/?q=6,%C2%A0+Avenue+des+Alpes&entry=gmail&source=g>
F-06600 Antibes, FRANCE
************************************************
Tel: +33 (0)4 92 94 49 08
Mobile: +33 (0)7 61 00 77 05
Email: *yann.garcia at fscom.fr* <yann.garcia at fscom.fr>
           Yann.Garcia_EXT at etsi.org
Skype: yann.garcia
Google+: garcia.yann at gmail.com


On Mon, 26 Nov 2018 at 00:47, NIIBE Yutaka <gniibe at fsij.org> wrote:

> Yann Garcia <garcia.yann at gmail.com> wrote:
> >
> q=hex_to_data("AC529F186F485D194EBE3677EA9FD1D7E7280648081A01686B3E78528D8AA5C6DC44DB3E54EEF45BA7EE989572D1DC0F83FF071E30B1EE5972D52D22D204A0AD",
>
> I think this representation is...
>
> [...]
> > And here was the issue: I got the error message "gcrypt/Not implemented"
>
> ... not supported by libgcrypt.
>
> For NIST P-256, only standard encoding (prefixed by 0x04, followed by X
> in MPI, then, Y in MPI [0]) is supported.  If not, it results an error
> in _gcry_ecc_os2ec by GPG_ERR_NOT_IMPLEMENTED (Not implemented).
>
> Just put the prefix "04" to your representation, if it's composed by X
> and Y in big endian.
>
> [0] http://www.secg.org/sec1-v2.pdf
> SEC 1: Elliptic Curve Cryptography (Version 2.0)
> 2.3.3 Elliptic-Curve-Point-to-Octet-String Conversion
> --
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20181126/a049befe/attachment.html>


More information about the Gcrypt-devel mailing list