Remove gen_get_params & gen_gettable_params from keygen operation
authorShane Lontis <shane.lontis@oracle.com>
Thu, 7 May 2020 05:31:05 +0000 (15:31 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Thu, 7 May 2020 05:31:05 +0000 (15:31 +1000)
commit5e77b79a8c47f0801f656cfccfcbaaa3ca1035b4
treef93d6603fd386aa19d5536a0a66f5b882aebc7cf
parent9f2058611f7aec733d4a476f4f28c895d9e5667b
Remove gen_get_params & gen_gettable_params from keygen operation

EVP_PKEY_CTX_gettable_params() was missing code for the keygen operation.
After adding it it was noticed that it is probably not required for this type, so instead
the gen_get_params and gen_gettable_params have been remnoved from the provider interface.
gen_get_params was only implemented for ec to get the curve name. This seems redundant
since normally you would set parameters into the keygen_init() and then generate a key.
Normally you would expect to extract data from the key - not the object that we just set up
to do the keygen.

Added a simple settable and gettable test into a test that does keygen.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11683)
crypto/evp/evp_local.h
crypto/evp/keymgmt_meth.c
crypto/evp/pmeth_gn.c
crypto/evp/pmeth_lib.c
doc/man7/provider-keymgmt.pod
include/crypto/evp.h
include/openssl/core_numbers.h
providers/implementations/keymgmt/ec_kmgmt.c
test/dsatest.c