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, 16 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_locl.h b/src/lib/libcrypto/rsa/rsa_locl.h
index 28bf4110c2..0d86799777 100644
--- a/src/lib/libcrypto/rsa/rsa_locl.h
+++ b/src/lib/libcrypto/rsa/rsa_locl.h
@@ -1,7 +1,22 @@
1/* $OpenBSD: rsa_locl.h,v 1.5 2019/10/04 16:51:31 jsing Exp $ */ 1/* $OpenBSD: rsa_locl.h,v 1.6 2019/10/24 16:26:13 jsing Exp $ */
2 2
3__BEGIN_HIDDEN_DECLS 3__BEGIN_HIDDEN_DECLS
4 4
5typedef struct rsa_oaep_params_st {
6 X509_ALGOR *hashFunc;
7 X509_ALGOR *maskGenFunc;
8 X509_ALGOR *pSourceFunc;
9
10 /* Hash algorithm decoded from maskGenFunc. */
11 X509_ALGOR *maskHash;
12} RSA_OAEP_PARAMS;
13
14RSA_OAEP_PARAMS *RSA_OAEP_PARAMS_new(void);
15void RSA_OAEP_PARAMS_free(RSA_OAEP_PARAMS *a);
16RSA_OAEP_PARAMS *d2i_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS **a, const unsigned char **in, long len);
17int i2d_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS *a, unsigned char **out);
18extern const ASN1_ITEM RSA_OAEP_PARAMS_it;
19
5extern int int_rsa_verify(int dtype, const unsigned char *m, 20extern int int_rsa_verify(int dtype, const unsigned char *m,
6 unsigned int m_len, unsigned char *rm, size_t *prm_len, 21 unsigned int m_len, unsigned char *rm, size_t *prm_len,
7 const unsigned char *sigbuf, size_t siglen, RSA *rsa); 22 const unsigned char *sigbuf, size_t siglen, RSA *rsa);