]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add check for public key presence on sm2 signing
authorNeil Horman <nhorman@openssl.org>
Mon, 18 Mar 2024 18:59:32 +0000 (14:59 -0400)
committerTomas Mraz <tomas@openssl.org>
Thu, 2 May 2024 15:44:02 +0000 (17:44 +0200)
commit1316aa05aae57cf47d8c8bfca38aaa042db1518f
tree50e309ea9f8ba35374075c32deb38e43fe5bab51
parente4a87616c07aa5e9bc32fa815e5ead4c17ce8fd9
Add check for public key presence on sm2 signing

SM2 requires that the public EC_POINT be present in a key when signing.
If its not there we crash on a NULL pointer.  Add a check to ensure that
its present, and raise an error if its not

Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24078)
crypto/sm2/sm2_sign.c
test/sm2_internal_test.c