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>
Fri, 26 Jun 2020 10:33:58 +0000 (13:33 +0300)
commit0c2bddb76a6aa7cad1f3689586040af074ad7e2b
treeec0f146e1d46f5af2cc846a72d02fbc40a79ad9d
parentcc63865f336e0144f8501aa0a862ba0247a50622
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: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12080)
test/recipes/15-test_genec.t [new file with mode: 0644]