]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/rsa/rsa_locl.h
Extend PSS padding code to support different digests for MGF1 and message.
[thirdparty/openssl.git] / crypto / rsa / rsa_locl.h
index f5d2d56628430978d8a518a7cf14802cd9cc039d..e8ea477929d24269be90d4582633517c29d810a7 100644 (file)
@@ -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);