diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-22 16:40:41 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-22 16:40:41 -0700 |
commit | 5b699cceabf0973f1232d1da269cfef0d64da2d9 (patch) | |
tree | 6610e02562f536e2d2c86d4fc9e042a0efc066e4 | |
parent | 45e416aaa8b7e0f6d1da3dd344b5e8bce178a529 (diff) | |
parent | 9ec1fd44682b459a719a216081e780db702933e3 (diff) | |
download | cryptography-5b699cceabf0973f1232d1da269cfef0d64da2d9.tar.gz cryptography-5b699cceabf0973f1232d1da269cfef0d64da2d9.tar.bz2 cryptography-5b699cceabf0973f1232d1da269cfef0d64da2d9.zip |
Merge pull request #168 from reaperhulk/evp-add-gcm-requirements
Add GCM constants and EVP_CIPHER_CTX_ctrl macro
-rw-r--r-- | cryptography/bindings/openssl/evp.py | 4 |
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 *); """ |