Raise error when invalid digest used with SM2
authorTomas Mraz <tomas@openssl.org>
Thu, 14 Oct 2021 09:02:36 +0000 (11:02 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 15 Oct 2021 12:37:21 +0000 (14:37 +0200)
commitd5d95daba59adc41ab60ea86acd513f255fca3c0
tree2a0c730b8eba5106e86271b3b643596570a25e79
parent34563be5368fb8e6ade7d06d8376522ba83cd6ac
Raise error when invalid digest used with SM2

Otherwise commands like openssl req -newkey sm2 fail silently without
reporting any error unless -sm3 option is added.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16833)
providers/implementations/signature/sm2_sig.c