aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-05 16:53:32 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-05 16:53:32 -0500
commit69b31c4c6ff764d0f9ad374313a6f4222243576e (patch)
tree1129eadbd3711842889bf4a535444a16e698044a
parentf7484a5b4e49aaf4570f9883629824b1dede17d5 (diff)
parentc2a2ee0365cd4f7b96f8794fef4f405107721816 (diff)
downloadcryptography-69b31c4c6ff764d0f9ad374313a6f4222243576e.tar.gz
cryptography-69b31c4c6ff764d0f9ad374313a6f4222243576e.tar.bz2
cryptography-69b31c4c6ff764d0f9ad374313a6f4222243576e.zip
Merge pull request #891 from public/bn-ctx-binding
BN_CTX bindings
-rw-r--r--cryptography/hazmat/bindings/openssl/bignum.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/bignum.py b/cryptography/hazmat/bindings/openssl/bignum.py
index a40397db..d505b177 100644
--- a/cryptography/hazmat/bindings/openssl/bignum.py
+++ b/cryptography/hazmat/bindings/openssl/bignum.py
@@ -44,6 +44,13 @@ FUNCTIONS = """
BIGNUM *BN_new(void);
void BN_free(BIGNUM *);
+BN_CTX *BN_CTX_new(void);
+void BN_CTX_free(BN_CTX *);
+
+void BN_CTX_start(BN_CTX *);
+BIGNUM *BN_CTX_get(BN_CTX *);
+void BN_CTX_end(BN_CTX *);
+
BIGNUM *BN_copy(BIGNUM *, const BIGNUM *);
BIGNUM *BN_dup(const BIGNUM *);
@@ -85,6 +92,7 @@ MACROS = """
int BN_zero(BIGNUM *);
int BN_one(BIGNUM *);
int BN_mod(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
+BIGNUM *BN_cmp(const BIGNUM *, const BIGNUM *);
"""
CUSTOMIZATIONS = """