diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-07-03 10:21:58 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-07-03 10:25:04 -0500 |
commit | 7a9fc5431d684cc1cdc9e43668d26ff93f3ac799 (patch) | |
tree | d9194a57c687fd9a7dc3b4ef9fbc058b76e0ade8 | |
parent | adb41ed19991d7f24047ba240eab9c846b7e1ace (diff) | |
download | cryptography-7a9fc5431d684cc1cdc9e43668d26ff93f3ac799.tar.gz cryptography-7a9fc5431d684cc1cdc9e43668d26ff93f3ac799.tar.bz2 cryptography-7a9fc5431d684cc1cdc9e43668d26ff93f3ac799.zip |
add some requested elliptic curve bindings
-rw-r--r-- | src/_cffi_src/openssl/ec.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/ec.py b/src/_cffi_src/openssl/ec.py index c5052d36..5ffbea6b 100644 --- a/src/_cffi_src/openssl/ec.py +++ b/src/_cffi_src/openssl/ec.py @@ -56,6 +56,8 @@ int EC_GROUP_get_curve_GF2m( const EC_GROUP *, BIGNUM *, BIGNUM *, BIGNUM *, BN_CTX *); int EC_GROUP_get_degree(const EC_GROUP *); +void EC_GROUP_set_asn1_flag(EC_GROUP *, int); +void EC_GROUP_set_point_conversion_form(EC_GROUP *, point_conversion_form_t); const EC_METHOD *EC_GROUP_method_of(const EC_GROUP *); const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *); @@ -63,6 +65,7 @@ int EC_GROUP_get_curve_name(const EC_GROUP *); size_t EC_get_builtin_curves(EC_builtin_curve *, size_t); +EC_KEY *EC_KEY_new(void); void EC_KEY_free(EC_KEY *); int EC_KEY_get_flags(const EC_KEY *); @@ -210,6 +213,7 @@ typedef long point_conversion_form_t; static const int OPENSSL_EC_NAMED_CURVE = 0; void (*EC_KEY_free)(EC_KEY *) = NULL; +EC_KEY *(*EC_KEY_new)(void) = NULL; size_t (*EC_get_builtin_curves)(EC_builtin_curve *, size_t) = NULL; EC_KEY *(*EC_KEY_new_by_curve_name)(int) = NULL; EC_KEY *(*EC_KEY_copy)(EC_KEY *, const EC_KEY *) = NULL; @@ -218,6 +222,9 @@ int (*EC_KEY_up_ref)(EC_KEY *) = NULL; const EC_GROUP *(*EC_KEY_get0_group)(const EC_KEY *) = NULL; int (*EC_GROUP_get_order)(const EC_GROUP *, BIGNUM *, BN_CTX *) = NULL; int (*EC_KEY_set_group)(EC_KEY *, const EC_GROUP *) = NULL; +void (*EC_GROUP_set_asn1_flag)(EC_GROUP *, int) = NULL; +void (*EC_GROUP_set_point_conversion_form)(EC_GROUP *, + point_conversion_form_t) = NULL; const BIGNUM *(*EC_KEY_get0_private_key)(const EC_KEY *) = NULL; int (*EC_KEY_set_private_key)(EC_KEY *, const BIGNUM *) = NULL; const EC_POINT *(*EC_KEY_get0_public_key)(const EC_KEY *) = NULL; @@ -412,6 +419,9 @@ CONDITIONAL_NAMES = { "EC_GROUP_get0_generator", "EC_GROUP_get_curve_name", "EC_GROUP_get_degree", + "EC_GROUP_set_asn1_flag", + "EC_GROUP_set_point_conversion_form", + "EC_KEY_new", "EC_KEY_free", "EC_get_builtin_curves", "EC_KEY_new_by_curve_name", |