Adapt tests for SM2 changes.
authorRichard Levitte <levitte@openssl.org>
Fri, 24 Jan 2020 17:14:53 +0000 (18:14 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 2 Feb 2020 11:04:00 +0000 (12:04 +0100)
commit3995de2c0356d8e3b34e8fb2ddf22b20210e498d
tree6e626d0a0331712059dc5922c492718049465f19
parentef077ba0d2fa28fd1b481f80335bda723d3d1f20
Adapt tests for SM2 changes.

With test/ecdsatest.c, we test all the curves once for each EC key
type we have, i.e. one round trip with EVP_PKEY_EC and one with
EVP_PKEY_SM2.  This shows that we can use "normal" EC computations on
keys with the SM2 curve (which have the type EVP_PKEY_SM2 by default)
and SM2 computations with any other curve (which have the type
EVP_PKEY_EC by default)

test/evp_test.c, on the other hand, doesn't need to explicitly set the
EVP_PKEY_SM2 alias type, as that now happens automatically.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/10942)
test/ecdsatest.c
test/evp_test.c