From fc01532d2e55f3ad67592fe6b0cf805f668a4f74 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 24 Oct 2019 15:51:23 +0000 Subject: Add maskHash field to RSA_PSS_PARAMS. This will be soon used as an optimisation and reduces the differences between OpenSSL. ok tb@ --- src/lib/libcrypto/rsa/rsa.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/rsa/rsa.h') 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 @@ -/* $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); -- cgit v1.2.3-55-g6feb