summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2019-10-24 15:54:30 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2019-10-24 15:54:30 +0000
commita6e8c43b60f20b2f10254e86e853221be58a51a8 (patch)
tree87df9285d16b54587f34c5a8b2674f6c7076fc76 /lib
parentb10cb8d97213b7e06066e104437bf5517720392d (diff)
Add RSA_PSS_PARAMS pointer to RSA struct.
This will be used by upcoming RSA-PSS code. ok tb@
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/rsa/rsa.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libcrypto/rsa/rsa.h b/lib/libcrypto/rsa/rsa.h
index 7a5d038b39b..db10049e0eb 100644
--- a/lib/libcrypto/rsa/rsa.h
+++ b/lib/libcrypto/rsa/rsa.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa.h,v 1.42 2019/10/24 15:51:23 jsing Exp $ */
+/* $OpenBSD: rsa.h,v 1.43 2019/10/24 15:54:29 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -84,6 +84,8 @@ extern "C" {
/* typedef struct rsa_st RSA; */
/* typedef struct rsa_meth_st RSA_METHOD; */
+typedef struct rsa_pss_params_st RSA_PSS_PARAMS;
+
struct rsa_meth_st {
const char *name;
int (*rsa_pub_enc)(int flen, const unsigned char *from,
@@ -127,6 +129,7 @@ struct rsa_st {
int pad;
long version;
const RSA_METHOD *meth;
+
/* functional reference if 'meth' is ENGINE-provided */
ENGINE *engine;
BIGNUM *n;
@@ -137,6 +140,10 @@ struct rsa_st {
BIGNUM *dmp1;
BIGNUM *dmq1;
BIGNUM *iqmp;
+
+ /* Parameter restrictions for PSS only keys. */
+ RSA_PSS_PARAMS *pss;
+
/* be careful using this if the RSA structure is shared */
CRYPTO_EX_DATA ex_data;
int references;