From 0d9fc8ec6d35ec6c4f834a8873e7ca63e9e769d0 Mon Sep 17 00:00:00 2001 From: Quinten Stokkink Date: Fri, 22 Jun 2018 16:32:47 +0200 Subject: Exposed OpenSSL prime methods (#4292) These are required by the Tribler project. --- src/_cffi_src/openssl/bignum.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/_cffi_src/openssl/bignum.py b/src/_cffi_src/openssl/bignum.py index eab40284..a352f5a8 100644 --- a/src/_cffi_src/openssl/bignum.py +++ b/src/_cffi_src/openssl/bignum.py @@ -72,6 +72,12 @@ BIGNUM *BN_mod_inverse(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); int BN_num_bytes(const BIGNUM *); int BN_mod(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); + +/* The following 3 prime methods are exposed for Tribler. */ +int BN_generate_prime_ex(BIGNUM *, int, int, const BIGNUM *, + const BIGNUM *, BN_GENCB *); +int BN_is_prime_ex(const BIGNUM *, int, BN_CTX *, BN_GENCB *); +const int BN_prime_checks_for_size(int); """ CUSTOMIZATIONS = """ -- cgit v1.2.3