summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_locl.h
diff options
context:
space:
mode:
authorjsing <>2019-10-24 16:26:13 +0000
committerjsing <>2019-10-24 16:26:13 +0000
commite76162e1394c75ce7b2d71cffbe5483c0725825d (patch)
tree7c02664411d33f6459e1dc8e6a3768f67a0cdfe1 /src/lib/libcrypto/rsa/rsa_locl.h
parentabc6e23413236ede23b95beac5c9e9e9ba8866e2 (diff)
downloadopenbsd-e76162e1394c75ce7b2d71cffbe5483c0725825d.tar.gz
openbsd-e76162e1394c75ce7b2d71cffbe5483c0725825d.tar.bz2
openbsd-e76162e1394c75ce7b2d71cffbe5483c0725825d.zip
Provide RSA_OAEP_PARAMS along with ASN.1 encoding/decoding.
For now these are internal only. From OpenSSL 1.1.1d. ok inoguchi@
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);