Fix speed sm2 bug
authorChenglong Zhang <auvkone@gmail.com>
Wed, 10 Feb 2021 09:52:29 +0000 (17:52 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 19 Feb 2021 12:55:51 +0000 (13:55 +0100)
commitc2279499fd17673b631785887c339cf35f088c41
treeb44e6ba0cf949b5e04366f3b5d9ac4aae629d031
parent1d724b5e82ba36fb50fd24db3cd664da570daf84
Fix speed sm2 bug

Should create PKEY CTX with EVP_PKEY_SM2;
each job should have its own sm2_pkey;
loopargs[i].sigsize should be set after EVP_DigestSign().

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14144)
apps/speed.c