mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 21:13:38 +08:00
b305452f69
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) |
||
---|---|---|
.. | ||
bio.pod | ||
crypto.pod | ||
ct.pod | ||
des_modes.pod | ||
Ed25519.pod | ||
EVP_KDF-HKDF.pod | ||
EVP_KDF-KB.pod | ||
EVP_KDF-KRB5KDF.pod | ||
EVP_KDF-PBKDF2.pod | ||
EVP_KDF-SCRYPT.pod | ||
EVP_KDF-SS.pod | ||
EVP_KDF-SSHKDF.pod | ||
EVP_KDF-TLS1_PRF.pod | ||
EVP_KDF-X942.pod | ||
EVP_KDF-X963.pod | ||
EVP_MAC-BLAKE2.pod | ||
EVP_MAC-CMAC.pod | ||
EVP_MAC-GMAC.pod | ||
EVP_MAC-HMAC.pod | ||
EVP_MAC-KMAC.pod | ||
EVP_MAC-Poly1305.pod | ||
EVP_MAC-Siphash.pod | ||
evp.pod | ||
openssl_user_macros.pod.in | ||
openssl-core.h.pod | ||
openssl-env.pod | ||
OSSL_PROVIDER-FIPS.pod | ||
ossl_store-file.pod | ||
ossl_store.pod | ||
passphrase-encoding.pod | ||
property.pod | ||
provider-asym_cipher.pod | ||
provider-base.pod | ||
provider-cipher.pod | ||
provider-digest.pod | ||
provider-keyexch.pod | ||
provider-keymgmt.pod | ||
provider-mac.pod | ||
provider-serializer.pod | ||
provider-signature.pod | ||
provider.pod | ||
proxy-certificates.pod | ||
RAND_DRBG.pod | ||
RAND.pod | ||
RSA-PSS.pod | ||
SM2.pod | ||
ssl.pod | ||
x509.pod | ||
X25519.pod |