Add missing check according to SM2 Digital Signature generation algorithm
authorMingjun.Yang <yangmingjun@uniontech.com>
Thu, 28 Oct 2021 02:14:55 +0000 (10:14 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 2 Nov 2021 11:02:56 +0000 (12:02 +0100)
commite81c81c9af8a5d22658110d2dc753582eb87a58e
treebba96aeb21445e7b8cd6cb94989313e0160f737e
parentaedc5a819ee3f5267a7ec5c795b97481a1c63dc6
Add missing check according to SM2 Digital Signature generation algorithm

The process should be conforming to clause 6.1 and 6.2 of GMT 0003.2-2012.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16931)
crypto/sm2/sm2_sign.c