diff options
author | Paul Yang <kaishen.yy@antfin.com> | 2020-03-04 16:49:43 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-09-22 09:18:09 +0200 |
commit | d0b79f8631c0f522c514175be4e4fbe984cf8f6c (patch) | |
tree | 4606888f35caaf5c2d6646ac4da4d98d75ab5d56 /providers/defltprov.c | |
parent | Add SM2 key management (diff) | |
download | openssl-d0b79f8631c0f522c514175be4e4fbe984cf8f6c.tar.xz openssl-d0b79f8631c0f522c514175be4e4fbe984cf8f6c.zip |
Add SM2 signature algorithm to default provider
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12536)
Diffstat (limited to 'providers/defltprov.c')
-rw-r--r-- | providers/defltprov.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/providers/defltprov.c b/providers/defltprov.c index fabb56bfec..8564ddd5ca 100644 --- a/providers/defltprov.c +++ b/providers/defltprov.c @@ -364,6 +364,9 @@ static const OSSL_ALGORITHM deflt_signature[] = { { "ED25519:Ed25519", "provider=default", ed25519_signature_functions }, { "ED448:Ed448", "provider=default", ed448_signature_functions }, { "ECDSA", "provider=default", ecdsa_signature_functions }, +# ifndef OPENSSL_NO_SM2 + { "SM2", "provider=default", sm2_signature_functions }, +# endif #endif { "HMAC", "provider=default", mac_legacy_hmac_signature_functions }, { "SIPHASH", "provider=default", mac_legacy_siphash_signature_functions }, @@ -413,6 +416,7 @@ static const OSSL_ALGORITHM deflt_keymgmt[] = { #endif #ifndef OPENSSL_NO_CMAC { "CMAC", "provider=default", cmac_legacy_keymgmt_functions }, +#endif #ifndef OPENSSL_NO_SM2 { "SM2", "provider=default", sm2_keymgmt_functions }, #endif |