diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_locl.h')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_locl.h | 17 |
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 | ||
5 | typedef 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 | |||
14 | RSA_OAEP_PARAMS *RSA_OAEP_PARAMS_new(void); | ||
15 | void RSA_OAEP_PARAMS_free(RSA_OAEP_PARAMS *a); | ||
16 | RSA_OAEP_PARAMS *d2i_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS **a, const unsigned char **in, long len); | ||
17 | int i2d_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS *a, unsigned char **out); | ||
18 | extern const ASN1_ITEM RSA_OAEP_PARAMS_it; | ||
19 | |||
5 | extern int int_rsa_verify(int dtype, const unsigned char *m, | 20 | extern 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); |