Test genpkey app for EC keygen with various args
authorNicola Tuveri <nic.tuv@gmail.com>
Sun, 7 Jun 2020 15:00:33 +0000 (18:00 +0300)
committerNicola Tuveri <nic.tuv@gmail.com>
Wed, 10 Jun 2020 13:01:06 +0000 (16:01 +0300)
commit5bd03afcbe6e6fd7dba2d85d5c67a5a0140b4a7d
tree5d7398ed04b8a97cd4a9e2b6b7ed07f2f1ed6ac6
parent0fef6d55d379bc6dacf05713c38f3ec81957ea69
Test genpkey app for EC keygen with various args

This commit adds a new recipe to test EC key generation with the
`genpkey` CLI app.

For each built-in curve, it tests key generation with text output, in
PEM and in DER format, using `explicit` and `named_curve` for parameters
encoding.

The list of built-in curves is static at the moment, as this allows to
differentiate between prime curves and binary curves to avoid failing
when ec2m is disabled.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/12085)
test/recipes/15-test_genec.t [new file with mode: 0644]