[openssl/openssl] d6a8ad: Add check for public key presence on sm2 signing

Neil Horman noreply at github.com
Tue Apr 9 18:43:58 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: d6a8adeccdb8188517c5a84d35b79ef826176472
      https://github.com/openssl/openssl/commit/d6a8adeccdb8188517c5a84d35b79ef826176472
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-04-09 (Tue, 09 Apr 2024)

  Changed paths:
    M crypto/sm2/sm2_sign.c
    M test/sm2_internal_test.c

  Log Message:
  -----------
  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 at antfin.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23887)


  Commit: 4feb4a2b2cb7c45c0392e03453a658f29bd70bd2
      https://github.com/openssl/openssl/commit/4feb4a2b2cb7c45c0392e03453a658f29bd70bd2
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-04-09 (Tue, 09 Apr 2024)

  Changed paths:
    M doc/man7/EVP_PKEY-SM2.pod

  Log Message:
  -----------
  Add docs noting requirements for SM2 signing

Reviewed-by: Paul Yang <kaishen.yy at antfin.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23887)


Compare: https://github.com/openssl/openssl/compare/beb82177ddcd...4feb4a2b2cb7

To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list