summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-06-01 12:51:45 +1000
committerPauli <pauli@openssl.org>2021-06-02 20:45:39 +1000
commitf2e3584d10f0ee61a35e2b5862b49f71ef5630bd (patch)
treec9c05abb9680bb2c38dde52f868237f592685a35 /include/crypto
parentc768893e7de5c85fdd47c1a464e83a8dbf05ac0d (diff)
add internal get_number functons to crypto/evp.h
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15564)
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/evp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/crypto/evp.h b/include/crypto/evp.h
index ce772dbec1..8438fe0e99 100644
--- a/include/crypto/evp.h
+++ b/include/crypto/evp.h
@@ -934,4 +934,16 @@ EC_KEY *evp_pkey_get0_EC_KEY_int(const EVP_PKEY *pkey);
RSA *evp_pkey_get0_RSA_int(const EVP_PKEY *pkey);
# endif
+/* Get internal identification number routines */
+int evp_asym_cipher_get_number(const EVP_ASYM_CIPHER *cipher);
+int evp_cipher_get_number(const EVP_CIPHER *cipher);
+int evp_kdf_get_number(const EVP_KDF *kdf);
+int evp_kem_get_number(const EVP_KEM *wrap);
+int evp_keyexch_get_number(const EVP_KEYEXCH *keyexch);
+int evp_keymgmt_get_number(const EVP_KEYMGMT *keymgmt);
+int evp_mac_get_number(const EVP_MAC *mac);
+int evp_md_get_number(const EVP_MD *md);
+int evp_rand_get_number(const EVP_RAND *rand);
+int evp_signature_get_number(const EVP_SIGNATURE *signature);
+
#endif /* OSSL_CRYPTO_EVP_H */