aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-14 11:39:06 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-14 11:39:06 -0600
commit27cc9f743cc97957db04430039ad4cd2073b2bd7 (patch)
treea78d469a3987d4c4ba384edca1103dfe87bc37ed
parent6bdd27ac4d7c71ed0d44c3656b19a57108a9e472 (diff)
downloadcryptography-27cc9f743cc97957db04430039ad4cd2073b2bd7.tar.gz
cryptography-27cc9f743cc97957db04430039ad4cd2073b2bd7.tar.bz2
cryptography-27cc9f743cc97957db04430039ad4cd2073b2bd7.zip
some padding functions we're going to need for 0.9.8
-rw-r--r--cryptography/hazmat/bindings/openssl/rsa.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/rsa.py b/cryptography/hazmat/bindings/openssl/rsa.py
index 2db2ea77..d6075db5 100644
--- a/cryptography/hazmat/bindings/openssl/rsa.py
+++ b/cryptography/hazmat/bindings/openssl/rsa.py
@@ -52,6 +52,14 @@ int RSA_public_decrypt(int, const unsigned char *, unsigned char *,
int RSA_private_decrypt(int, const unsigned char *, unsigned char *,
RSA *, int);
int RSA_print(BIO *, const RSA *, int);
+int RSA_verify_PKCS1_PSS(RSA *, const unsigned char *, const EVP_MD *,
+ const unsigned char *, int);
+int RSA_padding_add_PKCS1_PSS(RSA *, unsigned char *, const unsigned char *,
+ const EVP_MD *, int);
+int RSA_padding_add_PKCS1_OAEP(unsigned char *, int, const unsigned char *,
+ int, const unsigned char *, int);
+int RSA_padding_check_PKCS1_OAEP(unsigned char *, int, const unsigned char *,
+ int, int, const unsigned char *, int);
"""
MACROS = """