openssl/doc/man7
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
..
bio.pod POD: stop abusing comment 2019-10-11 15:30:57 +02:00
crypto.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 2019-09-28 06:33:16 +02:00
ct.pod Fix function names in ct(7) documentation 2018-12-19 19:00:08 +01:00
des_modes.pod Following the license change, modify the boilerplates in doc/man7/ 2018-12-06 15:36:02 +01:00
Ed25519.pod Fix L<xxx(1)> links to be L<openssl-xxx(1)> 2019-11-10 18:58:50 +01:00
EVP_KDF-HKDF.pod Fix L<EVP_KDF-derive> to L<EVP_DEF_derive> 2019-10-04 13:40:14 -04:00
EVP_KDF-KB.pod Various missing-link fixes 2019-12-12 16:55:02 +01:00
EVP_KDF-KRB5KDF.pod Fix some missing doc links. 2020-01-22 18:06:49 +01:00
EVP_KDF-PBKDF2.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 2019-09-28 06:33:16 +02:00
EVP_KDF-SCRYPT.pod Documentation updates due to naming tweaks 2019-11-21 15:49:58 +00:00
EVP_KDF-SS.pod Fix L<EVP_KDF-derive> to L<EVP_DEF_derive> 2019-10-04 13:40:14 -04:00
EVP_KDF-SSHKDF.pod Fix L<> entries without sections 2019-10-31 14:26:34 +01:00
EVP_KDF-TLS1_PRF.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 2019-09-28 06:33:16 +02:00
EVP_KDF-X942.pod Fix L<EVP_KDF-derive> to L<EVP_DEF_derive> 2019-10-04 13:40:14 -04:00
EVP_KDF-X963.pod Fix L<EVP_KDF-derive> to L<EVP_DEF_derive> 2019-10-04 13:40:14 -04:00
EVP_MAC-BLAKE2.pod Reformat param description lines 2019-09-27 16:21:51 +10:00
EVP_MAC-CMAC.pod Reformat param description lines 2019-09-27 16:21:51 +10:00
EVP_MAC-GMAC.pod Reformat param description lines 2019-09-27 16:21:51 +10:00
EVP_MAC-HMAC.pod Reformat param description lines 2019-09-27 16:21:51 +10:00
EVP_MAC-KMAC.pod Fix KMAC docs 2020-01-07 09:22:08 +10:00
EVP_MAC-Poly1305.pod Documentation updates due to naming tweaks 2019-11-21 15:49:58 +00:00
EVP_MAC-Siphash.pod Documentation updates due to naming tweaks 2019-11-21 15:49:58 +00:00
evp.pod Following the license change, modify the boilerplates in doc/man7/ 2018-12-06 15:36:02 +01:00
openssl_user_macros.pod.in DOCS: The interpretation of OPENSSL_API_COMPAT has changed, update docs 2020-01-09 15:00:16 +01:00
openssl-core.h.pod SERIALIZER: New API for serialization of objects through providers 2019-11-29 20:54:48 +01:00
openssl-env.pod Fix some missing doc links. 2020-01-22 18:06:49 +01:00
OSSL_PROVIDER-FIPS.pod Fix some missing doc links. 2020-01-22 18:06:49 +01:00
ossl_store-file.pod POD: stop abusing comment 2019-10-11 15:30:57 +02:00
ossl_store.pod POD: stop abusing comment 2019-10-11 15:30:57 +02:00
passphrase-encoding.pod Fix misspelling errors and typos reported by codespell 2020-02-06 17:01:00 +01:00
property.pod Fix Typos 2019-07-02 14:22:29 +02:00
provider-asym_cipher.pod Fix some missing doc links. 2020-01-22 18:06:49 +01:00
provider-base.pod Add FIPS Self test kats for digests 2020-01-15 10:48:01 +10:00
provider-cipher.pod Add GCM support for EVP_CTRL_GCM_IV_GEN and EVP_CTRL_GCM_SET_IV_INV to providers 2020-01-10 11:58:27 +10:00
provider-digest.pod Fix some broken doc links 2019-11-15 17:20:33 +01:00
provider-keyexch.pod Fix some missing doc links. 2020-01-22 18:06:49 +01:00
provider-keymgmt.pod Redesign the KEYMGMT libcrypto <-> provider interface - the basics 2020-02-07 09:37:56 +01:00
provider-mac.pod Fix some typos 2019-12-11 19:04:01 +01:00
provider-serializer.pod Redesign the KEYMGMT libcrypto <-> provider interface - the basics 2020-02-07 09:37:56 +01:00
provider-signature.pod Fix some missing doc links. 2020-01-22 18:06:49 +01:00
provider.pod Fix some missing doc links. 2020-01-22 18:06:49 +01:00
proxy-certificates.pod doc/man7/proxy-certificates.pod: New guide for proxy certificates 2019-11-27 16:18:28 +01:00
RAND_DRBG.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 2019-09-28 06:33:16 +02:00
RAND.pod man: clarify the 'random number generator must be seeded' requirement 2019-06-27 14:39:07 +02:00
RSA-PSS.pod Following the license change, modify the boilerplates in doc/man7/ 2018-12-06 15:36:02 +01:00
SM2.pod EVP_PKEY_assign_EC_KEY(): detect SM2 curve and set EVP_PKEY type accordingly 2020-02-02 12:04:00 +01:00
ssl.pod Strip much out of ssl.pod 2019-11-06 19:38:32 +01:00
x509.pod doc: fix some links 2019-07-19 20:16:30 +02:00
X25519.pod Use EXAMPLES not EXAMPLE for section title 2019-08-19 00:06:39 +02:00