diff options
author | jsing <> | 2019-10-24 15:54:29 +0000 |
---|---|---|
committer | jsing <> | 2019-10-24 15:54:29 +0000 |
commit | 7697a4d53c5404afdd3a6de4f76b2216bae8ac58 (patch) | |
tree | 1056ba90119a408b38ac4369ca6cddaff5bdd64f /src/lib/libcrypto/rsa/rsa.h | |
parent | fc01532d2e55f3ad67592fe6b0cf805f668a4f74 (diff) | |
download | openbsd-7697a4d53c5404afdd3a6de4f76b2216bae8ac58.tar.gz openbsd-7697a4d53c5404afdd3a6de4f76b2216bae8ac58.tar.bz2 openbsd-7697a4d53c5404afdd3a6de4f76b2216bae8ac58.zip |
Add RSA_PSS_PARAMS pointer to RSA struct.
This will be used by upcoming RSA-PSS code.
ok tb@
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; |