[openssl/openssl] e00821: 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/openssl-3.2
  Home:   https://github.com/openssl/openssl
  Commit: e008211ab9e5e50ae691320b65f1f99dd7211502
      https://github.com/openssl/openssl/commit/e008211ab9e5e50ae691320b65f1f99dd7211502
  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)

(cherry picked from commit d6a8adeccdb8188517c5a84d35b79ef826176472)


  Commit: 7d2c8fc3be331b4ce2b06d819e4934e473aa321d
      https://github.com/openssl/openssl/commit/7d2c8fc3be331b4ce2b06d819e4934e473aa321d
  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)

(cherry picked from commit 4feb4a2b2cb7c45c0392e03453a658f29bd70bd2)


Compare: https://github.com/openssl/openssl/compare/a1d45a421724...7d2c8fc3be33

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