aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-22 18:13:18 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-22 18:13:18 -0500
commit9ec1fd44682b459a719a216081e780db702933e3 (patch)
treeeb28a292eeaeb2b4017cda2c968d4a859997992b
parent6ffa54f31fbf1a16293b724b714f29468dcdf52d (diff)
downloadcryptography-9ec1fd44682b459a719a216081e780db702933e3.tar.gz
cryptography-9ec1fd44682b459a719a216081e780db702933e3.tar.bz2
cryptography-9ec1fd44682b459a719a216081e780db702933e3.zip
add gcm constants and EVP_CIPHER_CTX_ctrl macro
-rw-r--r--cryptography/bindings/openssl/evp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cryptography/bindings/openssl/evp.py b/cryptography/bindings/openssl/evp.py
index 41df1056..80980c6e 100644
--- a/cryptography/bindings/openssl/evp.py
+++ b/cryptography/bindings/openssl/evp.py
@@ -29,6 +29,9 @@ typedef struct evp_pkey_st {
} EVP_PKEY;
static const int EVP_PKEY_RSA;
static const int EVP_PKEY_DSA;
+static const int EVP_CTRL_GCM_SET_IVLEN;
+static const int EVP_CTRL_GCM_GET_TAG;
+static const int EVP_CTRL_GCM_SET_TAG;
"""
FUNCTIONS = """
@@ -84,4 +87,5 @@ MACROS = """
int EVP_PKEY_assign_RSA(EVP_PKEY *, RSA *);
int EVP_PKEY_assign_DSA(EVP_PKEY *, DSA *);
int EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *);
+int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *, int, int, void *);
"""