Add self-test for EC_POINT_hex2point
authorNicola Tuveri <nic.tuv@gmail.com>
Fri, 1 Nov 2019 20:09:40 +0000 (22:09 +0200)
committerNicola Tuveri <nic.tuv@gmail.com>
Wed, 13 Nov 2019 16:18:11 +0000 (18:18 +0200)
commitf59967cb72a042a1ecb9e686f3494e4a6a38e173
tree52e5eec25960ec0ce4c2b7bfccb892d36a613f8a
parent6f6adf1d7bf44abfae96a52c791a69cf694fd7f8
Add self-test for EC_POINT_hex2point

Adds tests for each curve to ensure that encodings obtained through
EC_POINT_hex2point() can be fed to EC_POINT_point2hex() yielding a point
identical to the one from which the encoding is generated.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10329)

(cherry picked from commit 35ed029b5a488924890fda2487c87f664361a33b)
test/ectest.c