[openssl/openssl] 06fbcb: 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.3
  Home:   https://github.com/openssl/openssl
  Commit: 06fbcb6eec57fe3690a1932d81d23fcae3a9a954
      https://github.com/openssl/openssl/commit/06fbcb6eec57fe3690a1932d81d23fcae3a9a954
  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: 2d1508f0181db26a81b57ff78121dfdfd63b32c4
      https://github.com/openssl/openssl/commit/2d1508f0181db26a81b57ff78121dfdfd63b32c4
  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/c24f54510092...2d1508f0181d

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