openssl/doc/internal/man3
Richard Levitte b305452f69 Redesign the KEYMGMT libcrypto <-> provider interface - the basics
The KEYMGMT libcrypto <-> provider interface currently makes a few
assumptions:

1.  provider side domain parameters and key data isn't mutable. In
    other words, as soon as a key has been created in any (loaded,
    imported data, ...), it's set in stone.
2.  provider side domain parameters can be strictly separated from the
    key data.

This does work for the most part, but there are places where that's a
bit too rigid for the functionality that the EVP_PKEY API delivers.
Key data needs to be mutable to allow the flexibility that functions
like EVP_PKEY_copy_parameters promise, as well as to provide the
combinations of data that an EVP_PKEY is generally assumed to be able
to hold:

- domain parameters only
- public key only
- public key + private key
- domain parameters + public key
- domain parameters + public key + private key

To remedy all this, we:

1.  let go of the distinction between domain parameters and key
    material proper in the libcrypto <-> provider interface.

    As a consequence, functions that still need it gain a selection
    argument, which is a set of bits that indicate what parts of the
    key object are to be considered in a specific call.  This allows
    a reduction of very similar functions into one.

2.  Rework the libcrypto <-> provider interface so provider side key
    objects are created and destructed with a separate function, and
    get their data filled and extracted in through import and export.

(future work will see other key object constructors and other
functions to fill them with data)

Fixes #10979

squash! Redesign the KEYMGMT libcrypto <-> provider interface - the basics

Remedy 1 needs a rewrite:

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11006)
2020-02-07 09:37:56 +01:00
..
cms_add1_signing_cert.pod Fix L<xxx(1)> links to be L<openssl-xxx(1)> 2019-11-10 18:58:50 +01:00
DEFINE_SPARSE_ARRAY_OF.pod POD: stop abusing comment 2019-10-11 15:30:57 +02:00
evp_generic_fetch.pod Fix L<> entries without sections 2019-10-31 14:26:34 +01:00
evp_keymgmt_newdata.pod Redesign the KEYMGMT libcrypto <-> provider interface - the basics 2020-02-07 09:37:56 +01:00
evp_keymgmt_util_export_to_provider.pod Redesign the KEYMGMT libcrypto <-> provider interface - the basics 2020-02-07 09:37:56 +01:00
evp_pkey_make_provided.pod Redesign the KEYMGMT libcrypto <-> provider interface - the basics 2020-02-07 09:37:56 +01:00
openssl_ctx_get_data.pod Reorganize public header files (part 1) 2019-09-28 20:26:36 +02:00
ossl_algorithm_do_all.pod Various missing-link fixes 2019-12-12 16:55:02 +01:00
ossl_cmp_asn1_octet_string_set1.pod Fix errors found by new find-doc-nits 2019-10-03 10:33:54 +10:00
ossl_cmp_ctx_set1_caPubs.pod Certificate Management Protocol (CMP, RFC 4210) extension to OpenSSL 2019-09-27 10:53:11 +01:00
ossl_cmp_hdr_init.pod chunk 5 of CMP contribution to OpenSSL 2019-10-29 14:17:39 +00:00
ossl_cmp_sk_X509_add1_cert.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 2019-09-28 06:33:16 +02:00
ossl_cmp_statusinfo_new.pod Fix some missing doc links. 2020-01-22 18:06:49 +01:00
ossl_init_thread_deregister.pod Fix some typos 2019-12-11 19:04:01 +01:00
ossl_method_construct.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 2019-09-28 06:33:16 +02:00
OSSL_METHOD_STORE.pod Properties: make query cache reference count aware. 2019-11-18 18:51:26 +10:00
ossl_namemap_new.pod CORE: ossl_namemap_add_names(): new function to add multiple names 2019-11-29 20:42:12 +01:00
ossl_param_bld_init.pod param_bld: add a padded BN call. 2020-01-19 10:20:06 +10:00
ossl_prov_util_nid_to_name.pod Cleanup: move remaining providers/common/include/internal/*.h 2019-10-10 14:12:15 +02:00
ossl_provider_add_conf_module.pod Enhance and update the docs of the internal ossl_provider API 2019-06-24 07:57:03 +02:00
ossl_provider_new.pod Fix some typos 2019-12-11 19:04:01 +01:00
rsa_get0_all_params.pod Doc for the added internal RSA functions 2019-10-18 15:06:47 +02:00