summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_locl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_locl.h')
-rw-r--r--src/lib/libcrypto/rsa/rsa_locl.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_locl.h b/src/lib/libcrypto/rsa/rsa_locl.h
index 621c89dc76..ef4dddd16b 100644
--- a/src/lib/libcrypto/rsa/rsa_locl.h
+++ b/src/lib/libcrypto/rsa/rsa_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_locl.h,v 1.9 2019/11/01 03:45:13 jsing Exp $ */ 1/* $OpenBSD: rsa_locl.h,v 1.10 2019/11/02 13:44:19 jsing Exp $ */
2 2
3__BEGIN_HIDDEN_DECLS 3__BEGIN_HIDDEN_DECLS
4 4
@@ -13,21 +13,6 @@ RSA_PSS_PARAMS *rsa_pss_params_create(const EVP_MD *sigmd, const EVP_MD *mgf1md,
13int rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd, 13int rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd,
14 const EVP_MD **pmgf1md, int *psaltlen); 14 const EVP_MD **pmgf1md, int *psaltlen);
15 15
16typedef struct rsa_oaep_params_st {
17 X509_ALGOR *hashFunc;
18 X509_ALGOR *maskGenFunc;
19 X509_ALGOR *pSourceFunc;
20
21 /* Hash algorithm decoded from maskGenFunc. */
22 X509_ALGOR *maskHash;
23} RSA_OAEP_PARAMS;
24
25RSA_OAEP_PARAMS *RSA_OAEP_PARAMS_new(void);
26void RSA_OAEP_PARAMS_free(RSA_OAEP_PARAMS *a);
27RSA_OAEP_PARAMS *d2i_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS **a, const unsigned char **in, long len);
28int i2d_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS *a, unsigned char **out);
29extern const ASN1_ITEM RSA_OAEP_PARAMS_it;
30
31extern int int_rsa_verify(int dtype, const unsigned char *m, 16extern int int_rsa_verify(int dtype, const unsigned char *m,
32 unsigned int m_len, unsigned char *rm, size_t *prm_len, 17 unsigned int m_len, unsigned char *rm, size_t *prm_len,
33 const unsigned char *sigbuf, size_t siglen, RSA *rsa); 18 const unsigned char *sigbuf, size_t siglen, RSA *rsa);