]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
SM2 signatures work correctly only with SM3 digests
authorTomas Mraz <tomas@openssl.org>
Wed, 28 Apr 2021 16:49:33 +0000 (18:49 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 30 Apr 2021 13:15:54 +0000 (15:15 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15074)

test/recipes/30-test_evp_data/evppkey_sm2.txt

index db5f1db6271e77c98b9c63a7f557d03848a97f6b..c32142d8339010d17026d292a8599cab90d4f924 100644 (file)
@@ -39,6 +39,7 @@ Verify = SM2_key1
 Ctrl = digest:SHA512
 Input = 40AA1B203C9D8EE150B21C3C7CDA8261492E5420C5F2B9F7380700E094C303B48E62F319C1DA0E32EB40D113C5F1749CC61AEB499167890AB82F2CC9BB706971
 Output = 3046022100AE018933B9BA041784380069F2DDF609694DCD299FDBF23D09F4B711FBC103EC0221008440BB1A48C132DE4FB91BE9F43B958142FDD29FB9DABE01B17514023A2F638C
+Result = PKEY_CTRL_ERROR
 
 Availablein = default
 Decrypt = SM2_key1