diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa.h')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index 7a5d038b39..db10049e0e 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.42 2019/10/24 15:51:23 jsing Exp $ */ | 1 | /* $OpenBSD: rsa.h,v 1.43 2019/10/24 15:54:29 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 | * |
@@ -84,6 +84,8 @@ extern "C" { | |||
84 | /* typedef struct rsa_st RSA; */ | 84 | /* typedef struct rsa_st RSA; */ |
85 | /* typedef struct rsa_meth_st RSA_METHOD; */ | 85 | /* typedef struct rsa_meth_st RSA_METHOD; */ |
86 | 86 | ||
87 | typedef struct rsa_pss_params_st RSA_PSS_PARAMS; | ||
88 | |||
87 | struct rsa_meth_st { | 89 | struct rsa_meth_st { |
88 | const char *name; | 90 | const char *name; |
89 | int (*rsa_pub_enc)(int flen, const unsigned char *from, | 91 | int (*rsa_pub_enc)(int flen, const unsigned char *from, |
@@ -127,6 +129,7 @@ struct rsa_st { | |||
127 | int pad; | 129 | int pad; |
128 | long version; | 130 | long version; |
129 | const RSA_METHOD *meth; | 131 | const RSA_METHOD *meth; |
132 | |||
130 | /* functional reference if 'meth' is ENGINE-provided */ | 133 | /* functional reference if 'meth' is ENGINE-provided */ |
131 | ENGINE *engine; | 134 | ENGINE *engine; |
132 | BIGNUM *n; | 135 | BIGNUM *n; |
@@ -137,6 +140,10 @@ struct rsa_st { | |||
137 | BIGNUM *dmp1; | 140 | BIGNUM *dmp1; |
138 | BIGNUM *dmq1; | 141 | BIGNUM *dmq1; |
139 | BIGNUM *iqmp; | 142 | BIGNUM *iqmp; |
143 | |||
144 | /* Parameter restrictions for PSS only keys. */ | ||
145 | RSA_PSS_PARAMS *pss; | ||
146 | |||
140 | /* be careful using this if the RSA structure is shared */ | 147 | /* be careful using this if the RSA structure is shared */ |
141 | CRYPTO_EX_DATA ex_data; | 148 | CRYPTO_EX_DATA ex_data; |
142 | int references; | 149 | int references; |