summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2019-10-24 15:51:23 +0000
committerjsing <jsing@openbsd.org>2019-10-24 15:51:23 +0000
commita1dce8a510c8669325d81de1134fea24167ddc85 (patch)
tree58d59a5a833be02592d5a8258dc04b196f8ae3d1 /lib
parentProvide RSA_pkey_ctx_ctrl(). (diff)
downloadwireguard-openbsd-a1dce8a510c8669325d81de1134fea24167ddc85.tar.xz
wireguard-openbsd-a1dce8a510c8669325d81de1134fea24167ddc85.zip
Add maskHash field to RSA_PSS_PARAMS.
This will be soon used as an optimisation and reduces the differences between OpenSSL. ok tb@
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/rsa/rsa.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libcrypto/rsa/rsa.h b/lib/libcrypto/rsa/rsa.h
index 1672297266d..7a5d038b39b 100644
--- a/lib/libcrypto/rsa/rsa.h
+++ b/lib/libcrypto/rsa/rsa.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa.h,v 1.41 2019/10/24 15:47:15 jsing Exp $ */
+/* $OpenBSD: rsa.h,v 1.42 2019/10/24 15:51:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -308,6 +308,9 @@ typedef struct rsa_pss_params_st {
X509_ALGOR *maskGenAlgorithm;
ASN1_INTEGER *saltLength;
ASN1_INTEGER *trailerField;
+
+ /* Hash algorithm decoded from maskGenAlgorithm. */
+ X509_ALGOR *maskHash;
} RSA_PSS_PARAMS;
RSA_PSS_PARAMS *RSA_PSS_PARAMS_new(void);