diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2020-05-07 15:31:05 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-05-07 15:31:05 +1000 |
commit | 5e77b79a8c47f0801f656cfccfcbaaa3ca1035b4 (patch) | |
tree | f93d6603fd386aa19d5536a0a66f5b882aebc7cf /doc | |
parent | 9f2058611f7aec733d4a476f4f28c895d9e5667b (diff) |
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)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man7/provider-keymgmt.pod | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/doc/man7/provider-keymgmt.pod b/doc/man7/provider-keymgmt.pod index 0669585b1a..4202a77b54 100644 --- a/doc/man7/provider-keymgmt.pod +++ b/doc/man7/provider-keymgmt.pod @@ -22,8 +22,6 @@ provider-keymgmt - The KEYMGMT library E<lt>-E<gt> provider functions int OP_keymgmt_gen_set_template(void *genctx, void *template); int OP_keymgmt_gen_set_params(void *genctx, const OSSL_PARAM params[]); const OSSL_PARAM *OP_keymgmt_gen_settable_params(void *provctx); - int OP_keymgmt_gen_get_params(void *genctx, const OSSL_PARAM params[]); - const OSSL_PARAM *OP_keymgmt_gen_gettable_params(void *provctx); void *OP_keymgmt_gen(void *genctx, OSSL_CALLBACK *cb, void *cbarg); void OP_keymgmt_gen_cleanup(void *genctx); @@ -93,8 +91,6 @@ macros in L<openssl-core_numbers.h(7)>, as follows: OP_keymgmt_gen_set_template OSSL_FUNC_KEYMGMT_GEN_SET_TEMPLATE OP_keymgmt_gen_set_params OSSL_FUNC_KEYMGMT_GEN_SET_PARAMS OP_keymgmt_gen_settable_params OSSL_FUNC_KEYMGMT_GEN_SETTABLE_PARAMS - OP_keymgmt_gen_get_params OSSL_FUNC_KEYMGMT_GEN_GET_PARAMS - OP_keymgmt_gen_gettable_params OSSL_FUNC_KEYMGMT_GEN_GETTABLE_PARAMS OP_keymgmt_gen OSSL_FUNC_KEYMGMT_GEN OP_keymgmt_gen_cleanup OSSL_FUNC_KEYMGMT_GEN_CLEANUP @@ -213,7 +209,6 @@ OP_keymgmt_free() should free the passed I<keydata>. OP_keymgmt_gen_init(), OP_keymgmt_gen_set_template(), OP_keymgmt_gen_set_params(), OP_keymgmt_gen_settable_params(), -OP_keymgmt_gen_get_params(), OP_keymgmt_gen_gettable_params(), OP_keymgmt_gen() and OP_keymgmt_gen_cleanup() work together as a more elaborate context based key object constructor. @@ -235,13 +230,6 @@ OP_keymgmt_gen_settable_params() should return a constant array of descriptor B<OSSL_PARAM>, for parameters that OP_keymgmt_gen_set_params() can handle. -OP_keymgmt_gen_get_params() should extract information data associated -with the key object generation context I<genctx>. - -OP_keymgmt_gen_gettable_params() should return a constant array of -descriptor B<OSSL_PARAM>, for parameters that OP_keymgmt_gen_get_params() -can handle. - OP_keymgmt_gen() should perform the key object generation itself, and return the result. The callback I<cb> should be called at regular intervals with indications on how the key object generation |