Generating and checking SM2 signatures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm tasked to implement certain cryptographic functions (chiefly signature creation/validation) using the SM2 algorithm for a communication testing application. My problem is that the standard which I need to follow (which is, unfortunately, not a public standard) states that the signature needs to be generated over H(data input) || H(some ID) , so I cannot use the EVP-Method as I understand it from https://www.openssl.org/docs/manmaster/man7/SM2.html (here, H is the SM3 hash function). This would be possible to achieve by generating the digest and then using the (albeit deprecated) function ECDSA_do_sign for ECDSA but I don't know how to do it for SM2.

Is there any way to do this with openssl? Any help or pointer is very much appreciated!

Thank you,

    Jörg

--
Jörg Heßdörfer
S.E.A. Datentechnik GmbH
Mülheimer Straße 7
53840 Troisdorf
Tel.: +49 2241 12737-19
Fax.: +49 2241 12737-14
E-Mail: Joerg.Hessdoerfer@xxxxxxxxxxxx
Web : http://www.sea-gmbh.com

Informationen nach 37aHGB, 35a GmbH-Gesetz:
S.E.A.
Science& Engineering Applications
Datentechnik GmbH
Sitz der Gesellschaft Köln
Handelsregister Köln HRB 27016
Geschäftsführer: Dr. Gerd Schmitz, Wolfram Koerver




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux