summaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa_locl.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-03-11 13:40:42 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-03-11 13:40:42 +0000
commite8254d406fb90282a7afef5d7def0aef1efe96aa (patch)
treece89905324da59f170ae08551412567a87934b2c /crypto/rsa/rsa_locl.h
parent85522a074c38b57f48f768067cd7eddaa98faac0 (diff)
Extend PSS padding code to support different digests for MGF1 and message.
Diffstat (limited to 'crypto/rsa/rsa_locl.h')
-rw-r--r--crypto/rsa/rsa_locl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/rsa/rsa_locl.h b/crypto/rsa/rsa_locl.h
index f5d2d56628..e8ea477929 100644
--- a/crypto/rsa/rsa_locl.h
+++ b/crypto/rsa/rsa_locl.h
@@ -2,3 +2,11 @@ extern int int_rsa_verify(int dtype, const unsigned char *m, unsigned int m_len,
unsigned char *rm, size_t *prm_len,
const unsigned char *sigbuf, size_t siglen,
RSA *rsa);
+
+int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash,
+ const EVP_MD *Hash, const EVP_MD *mgf1Hash,
+ const unsigned char *EM, int sLen);
+
+int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,
+ const unsigned char *mHash,
+ const EVP_MD *Hash, const EVP_MD *mgf1Hash, int sLen);