From e45a4b510174df78462183824fc2eff0408bf6e2 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 5 Apr 2014 22:12:35 +0100 Subject: BN_CTX bindings --- cryptography/hazmat/bindings/openssl/bignum.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cryptography/hazmat/bindings/openssl/bignum.py b/cryptography/hazmat/bindings/openssl/bignum.py index a40397db..48350a38 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 *); -- cgit v1.2.3 From c2a2ee0365cd4f7b96f8794fef4f405107721816 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 5 Apr 2014 22:24:32 +0100 Subject: BN_cmp macro --- cryptography/hazmat/bindings/openssl/bignum.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cryptography/hazmat/bindings/openssl/bignum.py b/cryptography/hazmat/bindings/openssl/bignum.py index 48350a38..d505b177 100644 --- a/cryptography/hazmat/bindings/openssl/bignum.py +++ b/cryptography/hazmat/bindings/openssl/bignum.py @@ -92,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 = """ -- cgit v1.2.3