summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2020-04-01 15:51:18 +1000
committerShane Lontis <shane.lontis@oracle.com>2020-04-01 15:51:18 +1000
commit96ebe52e897dea29664683e138877fb5eb995e4d (patch)
treeb32e8fa99b2b4eb53e214b7fa196c8ec8d465777 /util
parentf4c88073091592b1ff92ba12c894488ff7d03ece (diff)
downloadopenssl-new-96ebe52e897dea29664683e138877fb5eb995e4d.tar.gz
Add EVP_PKEY_gettable_params support for accessing EVP_PKEY key data fields
Currently only RSA, EC and ECX are supported (DH and DSA need to be added to the keygen PR's seperately because the fields supported have changed significantly). The API's require the keys to be provider based. Made the keymanagement export and get_params functions share the same code by supplying support functions that work for both a OSSL_PARAM_BLD as well as a OSSL_PARAM[]. This approach means that complex code is not required to build an empty OSSL_PARAM[] with the correct sized fields before then doing a second pass to populate the array. The RSA factor arrays have been changed to use unique key names to simplify the interface needed by the user. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11365)
Diffstat (limited to 'util')
-rw-r--r--util/libcrypto.num6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/libcrypto.num b/util/libcrypto.num
index 9fc7cfcf18..cd0a7d806e 100644
--- a/util/libcrypto.num
+++ b/util/libcrypto.num
@@ -5030,3 +5030,9 @@ SRP_Calc_u_ex ? 3_0_0 EXIST::FUNCTION:SRP
SRP_Calc_x_ex ? 3_0_0 EXIST::FUNCTION:SRP
SRP_Calc_client_key_ex ? 3_0_0 EXIST::FUNCTION:SRP
X509v3_cache_extensions ? 3_0_0 EXIST::FUNCTION:
+EVP_PKEY_gettable_params ? 3_0_0 EXIST::FUNCTION:
+EVP_PKEY_get_int_param ? 3_0_0 EXIST::FUNCTION:
+EVP_PKEY_get_size_t_param ? 3_0_0 EXIST::FUNCTION:
+EVP_PKEY_get_bn_param ? 3_0_0 EXIST::FUNCTION:
+EVP_PKEY_get_utf8_string_param ? 3_0_0 EXIST::FUNCTION:
+EVP_PKEY_get_octet_string_param ? 3_0_0 EXIST::FUNCTION: