More testing for CLI usage of Ed25519 and Ed448 keys
authorNicola Tuveri <nic.tuv@gmail.com>
Mon, 11 Nov 2019 10:13:10 +0000 (12:13 +0200)
committerNicola Tuveri <nic.tuv@gmail.com>
Mon, 25 May 2020 23:11:22 +0000 (02:11 +0300)
commitefdfc392aac6d56fe385223cd26687fa26ca9af3
treed80c0787033fb000b6d5d3b017d89691e95dea21
parente7bab429fb2f043165838496fb58aa257235dbe1
More testing for CLI usage of Ed25519 and Ed448 keys

Add testing for the `req` app and explicit conversion tests similar to
what is done for ECDSA keys.

The included test keys for Ed25519 are from the examples in RFC 8410
(Sec. 10)

The key for Ed448 is derived from the first of the test vectors in
RFC 8032 (Sec. 7.4) using OpenSSL to encode it into PEM format.

(cherry picked from commit 81722fdf2e01cfa71c46abbcc19e65aa003e083f)

This is originally a cherry-pick from
https://github.com/openssl/openssl/pull/10410, with trivial changes from
the original commit to account for the differences in 1.1.1.

Fixes #10687

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/11939)
test/recipes/15-test_ec.t
test/recipes/25-test_req.t
test/tested25519.pem [new file with mode: 0644]
test/tested25519pub.pem [new file with mode: 0644]
test/tested448.pem [new file with mode: 0644]
test/tested448pub.pem [new file with mode: 0644]