test_ecpub: test that we can decode the DER we encoded
authorBenjamin Kaduk <bkaduk@akamai.com>
Fri, 19 Feb 2021 21:20:00 +0000 (13:20 -0800)
committerRichard Levitte <levitte@openssl.org>
Sat, 27 Feb 2021 15:14:09 +0000 (16:14 +0100)
commit3d364726606424f760211b5015920410ea9c8f0d
treede42e9d5b9a45c681c7738b08b8e0cce5e0f223d
parentad7cb0bf5cb9b014d34327cb35ecdd609a3d4dd4
test_ecpub: test that we can decode the DER we encoded

We should be able to round-trip through the encoded DER form of the
EC public key and get back something that compares as equal to the
original key.

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