Add test for EC pubkey export/import
authorBenjamin Kaduk <bkaduk@akamai.com>
Mon, 25 Jan 2021 20:19:16 +0000 (12:19 -0800)
committerRichard Levitte <levitte@openssl.org>
Sat, 27 Feb 2021 15:14:09 +0000 (16:14 +0100)
commitc0ff1932e446621f43cd607371b7d265370d4bc6
tree120b8b6b83f72dda60d18c8f7e0f1eb4ab5d7b4b
parent4ef70dbcf495adfa28efa815c5415dfb9903b92d
Add test for EC pubkey export/import

There seems to be an issue with i2d_provided() in i2d_evp.c that causes
us to fail to construct a valid chain of encoders for the "type-specific"
output when it's an EC pubkey.  This test is designed to exercise that
codepath for a variety of curves.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14291)
test/evp_extra_test.c