diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2019-10-24 15:51:24 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2019-10-24 15:51:24 +0000 |
commit | b10cb8d97213b7e06066e104437bf5517720392d (patch) | |
tree | 6a25549b9f5b961ff386db90be4c90a1fe6949d4 /lib/libcrypto/rsa | |
parent | 8ede720beba2aa1b95a7b488c4499c67ede9a39c (diff) |
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/libcrypto/rsa')
-rw-r--r-- | lib/libcrypto/rsa/rsa.h | 5 |
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); |