TEST: fix the DH tests to reproduce the priv_len settings
authorRichard Levitte <levitte@openssl.org>
Thu, 15 Oct 2020 06:30:49 +0000 (08:30 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 19 Oct 2020 10:14:11 +0000 (12:14 +0200)
commitea7277fd2e27afa3a173ea30d567f45d7bb3d30d
tree5f37a9a079a43ceb79daf56f1815b86c56bad4ea
parentee55a2072785701d7f9322013f5e9968b1ff141f
TEST: fix the DH tests to reproduce the priv_len settings

Some DH tests are done against files generated with '-pkeyopt priv_len:224'
This parameter must of course be reproduced when creating the key with
EVP_PKEY_fromdata(), or there will be a default that's guaranteed to
differ from the key parameters on file.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13166)
test/evp_pkey_provided_test.c