summaryrefslogtreecommitdiffstats
path: root/include/crypto/rsa.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-05-02 12:41:39 +0200
committerRichard Levitte <levitte@openssl.org>2020-05-14 12:16:34 +0200
commite9d6186e0507fb814310c5230293ff62310c5f9d (patch)
tree545cbcef533697123473de5d3b4bb23ef2570194 /include/crypto/rsa.h
parent645a541a3fdabd32cb8cbda48651f4150486189d (diff)
RSA: Add rsa_schemes.c, to store scheme data and translator functions
The scheme currently added is OAEP-PSSDigestAlgorithms codified. The translator functions translate an EVP_MD into a NID, and a NID into a name, to support the creation and parsing of OSSL_PARAM items. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11710)
Diffstat (limited to 'include/crypto/rsa.h')
-rw-r--r--include/crypto/rsa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/crypto/rsa.h b/include/crypto/rsa.h
index 321c7f8c1e..fb7f80da3f 100644
--- a/include/crypto/rsa.h
+++ b/include/crypto/rsa.h
@@ -13,6 +13,10 @@
#include <openssl/core.h>
#include <openssl/rsa.h>
+const char *rsa_mgf_nid2name(int mgf);
+int rsa_oaeppss_md2nid(const EVP_MD *md);
+const char *rsa_oaeppss_nid2name(int md);
+
RSA *rsa_new_with_ctx(OPENSSL_CTX *libctx);
int rsa_set0_all_params(RSA *r, const STACK_OF(BIGNUM) *primes,