summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rsa')
-rw-r--r--src/lib/libcrypto/rsa/rsa.h17
-rw-r--r--src/lib/libcrypto/rsa/rsa_locl.h17
2 files changed, 17 insertions, 17 deletions
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h
index 638bad7cc6..0c6f5b920d 100644
--- a/src/lib/libcrypto/rsa/rsa.h
+++ b/src/lib/libcrypto/rsa/rsa.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa.h,v 1.47 2019/11/01 15:13:05 jsing Exp $ */ 1/* $OpenBSD: rsa.h,v 1.48 2019/11/02 13:44:19 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -361,6 +361,21 @@ RSA_PSS_PARAMS *d2i_RSA_PSS_PARAMS(RSA_PSS_PARAMS **a, const unsigned char **in,
361int i2d_RSA_PSS_PARAMS(RSA_PSS_PARAMS *a, unsigned char **out); 361int i2d_RSA_PSS_PARAMS(RSA_PSS_PARAMS *a, unsigned char **out);
362extern const ASN1_ITEM RSA_PSS_PARAMS_it; 362extern const ASN1_ITEM RSA_PSS_PARAMS_it;
363 363
364typedef struct rsa_oaep_params_st {
365 X509_ALGOR *hashFunc;
366 X509_ALGOR *maskGenFunc;
367 X509_ALGOR *pSourceFunc;
368
369 /* Hash algorithm decoded from maskGenFunc. */
370 X509_ALGOR *maskHash;
371} RSA_OAEP_PARAMS;
372
373RSA_OAEP_PARAMS *RSA_OAEP_PARAMS_new(void);
374void RSA_OAEP_PARAMS_free(RSA_OAEP_PARAMS *a);
375RSA_OAEP_PARAMS *d2i_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS **a, const unsigned char **in, long len);
376int i2d_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS *a, unsigned char **out);
377extern const ASN1_ITEM RSA_OAEP_PARAMS_it;
378
364int RSA_print_fp(FILE *fp, const RSA *r, int offset); 379int RSA_print_fp(FILE *fp, const RSA *r, int offset);
365 380
366#ifndef OPENSSL_NO_BIO 381#ifndef OPENSSL_NO_BIO
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);