Support parsing of SM2 ID in hexdecimal
authorPaul Yang <kaishen.yy@antfin.com>
Tue, 30 Jul 2019 15:05:44 +0000 (23:05 +0800)
committerPaul Yang <kaishen.yy@antfin.com>
Thu, 22 Aug 2019 02:29:28 +0000 (10:29 +0800)
commita45eb7e8918f055115e0a1f206f8b74a2ed06dc6
tree9a77fbfe998f92c122df0f914c9b09dd57be3216
parente1178600cc5d40b1e21c4a01d224afd2d8c7498a
Support parsing of SM2 ID in hexdecimal

The current EVP_PEKY_ctrl for SM2 has no capability of parsing an ID
input in hexdecimal.

The newly added ctrl string is called: sm2_hex_id

Test cases and documentation are updated.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9584)
crypto/sm2/sm2_pmeth.c
doc/man1/pkeyutl.pod
include/openssl/ec.h
test/recipes/25-test_req.t