summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2019-10-24 15:51:23 +0000
committerjsing <>2019-10-24 15:51:23 +0000
commitfc01532d2e55f3ad67592fe6b0cf805f668a4f74 (patch)
tree3639bc42dc2e9a77f3be95a673fe7fc989ae1393 /src/lib
parent50e5605acbcc6e6bf44f795b6e2747dbecef349d (diff)
downloadopenbsd-fc01532d2e55f3ad67592fe6b0cf805f668a4f74.tar.gz
openbsd-fc01532d2e55f3ad67592fe6b0cf805f668a4f74.tar.bz2
openbsd-fc01532d2e55f3ad67592fe6b0cf805f668a4f74.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 'src/lib')
-rw-r--r--src/lib/libcrypto/rsa/rsa.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h
index 1672297266..7a5d038b39 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.41 2019/10/24 15:47:15 jsing Exp $ */ 1/* $OpenBSD: rsa.h,v 1.42 2019/10/24 15:51:23 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 *
@@ -308,6 +308,9 @@ typedef struct rsa_pss_params_st {
308 X509_ALGOR *maskGenAlgorithm; 308 X509_ALGOR *maskGenAlgorithm;
309 ASN1_INTEGER *saltLength; 309 ASN1_INTEGER *saltLength;
310 ASN1_INTEGER *trailerField; 310 ASN1_INTEGER *trailerField;
311
312 /* Hash algorithm decoded from maskGenAlgorithm. */
313 X509_ALGOR *maskHash;
311} RSA_PSS_PARAMS; 314} RSA_PSS_PARAMS;
312 315
313RSA_PSS_PARAMS *RSA_PSS_PARAMS_new(void); 316RSA_PSS_PARAMS *RSA_PSS_PARAMS_new(void);