PROV: Add SM2 encoders and decoders, as well as support functionality
authorRichard Levitte <levitte@openssl.org>
Thu, 28 Jan 2021 07:22:09 +0000 (08:22 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 1 Feb 2021 22:02:20 +0000 (23:02 +0100)
commitf2db0528d8d7015ba39faca78a16e5e820db9df6
tree4301c6eb84f21f3fc19e71876589c5fb8c462af4
parent58f422f6f481ec7961fe762c97121b53abad3eb4
PROV: Add SM2 encoders and decoders, as well as support functionality

The EC KEYMGMT implementation handled SM2 as well, except what's
needed to support decoding: loading functions for both EC and SM2 that
checks for the presence or absence of the SM2 curve the same way as
the EC / SM2 import functions.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14028)
providers/decoders.inc
providers/encoders.inc
providers/implementations/encode_decode/decode_der2key.c
providers/implementations/encode_decode/encode_key2any.c
providers/implementations/encode_decode/encode_key2text.c
providers/implementations/include/prov/implementations.h
providers/implementations/keymgmt/ec_kmgmt.c