diff options
author | Richard Levitte <levitte@openssl.org> | 2020-01-24 18:45:23 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-02-02 12:06:39 +0100 |
commit | bac1030ae4f93f22b3a81e3a2d9d3c5db363d96f (patch) | |
tree | b7217b9e68f46b3188b6da586aa2d86efcc49797 /apps/speed.c | |
parent | 3995de2c0356d8e3b34e8fb2ddf22b20210e498d (diff) |
Adapt some 'openssl' commands for SM2 changes.
There's no longer any need to make an EVP_PKEY type change for SM2
keys, so we trim away that code.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/10942)
Diffstat (limited to 'apps/speed.c')
-rw-r--r-- | apps/speed.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/speed.c b/apps/speed.c index a978bdf17a..d2afebb2c6 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -3399,8 +3399,6 @@ int speed_main(int argc, char **argv) /* attach it sooner to rely on main final cleanup */ loopargs[i].sm2_pkey[testnum] = sm2_pkey; loopargs[i].sigsize = ECDSA_size(EVP_PKEY_get0_EC_KEY(sm2_pkey)); - if (!EVP_PKEY_set_alias_type(sm2_pkey, EVP_PKEY_SM2)) - break; sm2_pctx = EVP_PKEY_CTX_new(sm2_pkey, NULL); sm2_vfy_pctx = EVP_PKEY_CTX_new(sm2_pkey, NULL); |