You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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)
3 years ago
..
EVP_KDF-HKDF.pod Fix L<EVP_KDF-derive> to L<EVP_DEF_derive> 4 years ago
EVP_KDF-KB.pod Various missing-link fixes 4 years ago
EVP_KDF-KRB5KDF.pod Fix some missing doc links. 3 years ago
EVP_KDF-PBKDF2.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 4 years ago
EVP_KDF-SCRYPT.pod Documentation updates due to naming tweaks 4 years ago
EVP_KDF-SS.pod Fix L<EVP_KDF-derive> to L<EVP_DEF_derive> 4 years ago
EVP_KDF-SSHKDF.pod Fix L<> entries without sections 4 years ago
EVP_KDF-TLS1_PRF.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 4 years ago
EVP_KDF-X942.pod Fix L<EVP_KDF-derive> to L<EVP_DEF_derive> 4 years ago
EVP_KDF-X963.pod Fix L<EVP_KDF-derive> to L<EVP_DEF_derive> 4 years ago
EVP_MAC-BLAKE2.pod Reformat param description lines 4 years ago
EVP_MAC-CMAC.pod Reformat param description lines 4 years ago
EVP_MAC-GMAC.pod Reformat param description lines 4 years ago
EVP_MAC-HMAC.pod Reformat param description lines 4 years ago
EVP_MAC-KMAC.pod Fix KMAC docs 3 years ago
EVP_MAC-Poly1305.pod Documentation updates due to naming tweaks 4 years ago
EVP_MAC-Siphash.pod Documentation updates due to naming tweaks 4 years ago
Ed25519.pod Fix L<xxx(1)> links to be L<openssl-xxx(1)> 4 years ago
OSSL_PROVIDER-FIPS.pod Fix some missing doc links. 3 years ago
RAND.pod man: clarify the 'random number generator must be seeded' requirement 4 years ago
RAND_DRBG.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 4 years ago
RSA-PSS.pod Following the license change, modify the boilerplates in doc/man7/ 5 years ago
SM2.pod EVP_PKEY_assign_EC_KEY(): detect SM2 curve and set EVP_PKEY type accordingly 3 years ago
X25519.pod Use EXAMPLES not EXAMPLE for section title 4 years ago
bio.pod POD: stop abusing comment 4 years ago
crypto.pod Make doc/man7/ and doc/internal/man3/ conform with man-pages(7) 4 years ago
ct.pod Fix function names in ct(7) documentation 5 years ago
des_modes.pod Following the license change, modify the boilerplates in doc/man7/ 5 years ago
evp.pod Following the license change, modify the boilerplates in doc/man7/ 5 years ago
openssl-core.h.pod SERIALIZER: New API for serialization of objects through providers 4 years ago
openssl-env.pod Fix some missing doc links. 3 years ago
openssl_user_macros.pod.in DOCS: The interpretation of OPENSSL_API_COMPAT has changed, update docs 3 years ago
ossl_store-file.pod POD: stop abusing comment 4 years ago
ossl_store.pod POD: stop abusing comment 4 years ago
passphrase-encoding.pod Fix misspelling errors and typos reported by codespell 3 years ago
property.pod Fix Typos 4 years ago
provider-asym_cipher.pod Fix some missing doc links. 3 years ago
provider-base.pod Add FIPS Self test kats for digests 3 years ago
provider-cipher.pod Add GCM support for EVP_CTRL_GCM_IV_GEN and EVP_CTRL_GCM_SET_IV_INV to providers 3 years ago
provider-digest.pod Fix some broken doc links 4 years ago
provider-keyexch.pod Fix some missing doc links. 3 years ago
provider-keymgmt.pod Redesign the KEYMGMT libcrypto <-> provider interface - the basics 3 years ago
provider-mac.pod Fix some typos 4 years ago
provider-serializer.pod Redesign the KEYMGMT libcrypto <-> provider interface - the basics 3 years ago
provider-signature.pod Fix some missing doc links. 3 years ago
provider.pod Fix some missing doc links. 3 years ago
proxy-certificates.pod doc/man7/proxy-certificates.pod: New guide for proxy certificates 4 years ago
ssl.pod Strip much out of ssl.pod 4 years ago
x509.pod doc: fix some links 4 years ago