diff options
author | jsing <> | 2019-10-24 15:51:23 +0000 |
---|---|---|
committer | jsing <> | 2019-10-24 15:51:23 +0000 |
commit | fc01532d2e55f3ad67592fe6b0cf805f668a4f74 (patch) | |
tree | 3639bc42dc2e9a77f3be95a673fe7fc989ae1393 /src/lib | |
parent | 50e5605acbcc6e6bf44f795b6e2747dbecef349d (diff) | |
download | openbsd-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.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); |