diff options
author | jsing <> | 2019-10-24 15:51:23 +0000 |
---|---|---|
committer | jsing <> | 2019-10-24 15:51:23 +0000 |
commit | 6187e78b59989e5305bd555717dd3d8ece29e895 (patch) | |
tree | 3639bc42dc2e9a77f3be95a673fe7fc989ae1393 /src | |
parent | 952910b85d29ed474db8c76e4d46c1bd2dabc27b (diff) | |
download | openbsd-6187e78b59989e5305bd555717dd3d8ece29e895.tar.gz openbsd-6187e78b59989e5305bd555717dd3d8ece29e895.tar.bz2 openbsd-6187e78b59989e5305bd555717dd3d8ece29e895.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')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 5 |
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 | ||
313 | RSA_PSS_PARAMS *RSA_PSS_PARAMS_new(void); | 316 | RSA_PSS_PARAMS *RSA_PSS_PARAMS_new(void); |