diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-03-15 16:56:39 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-03-15 16:56:39 -0400 |
commit | 5b8914a0524d4dc3539265f8ccf9909d053787b7 (patch) | |
tree | af9bea26da1dfa6ec78aa5bce3e49d3f0952e191 /src/_cffi_src/openssl/ecdsa.py | |
parent | 06049448d94cf8a73c43755e6b929b4f871e2cbd (diff) | |
download | cryptography-5b8914a0524d4dc3539265f8ccf9909d053787b7.tar.gz cryptography-5b8914a0524d4dc3539265f8ccf9909d053787b7.tar.bz2 cryptography-5b8914a0524d4dc3539265f8ccf9909d053787b7.zip |
Ec is a thing (#3453)
* We always have EC
* We always have ECDH
* We always have ECDSA
* We always have EC codes
* This can go as well
* And this
* unused import
Diffstat (limited to 'src/_cffi_src/openssl/ecdsa.py')
-rw-r--r-- | src/_cffi_src/openssl/ecdsa.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/_cffi_src/openssl/ecdsa.py b/src/_cffi_src/openssl/ecdsa.py index f3e9fba0..2022b814 100644 --- a/src/_cffi_src/openssl/ecdsa.py +++ b/src/_cffi_src/openssl/ecdsa.py @@ -5,9 +5,7 @@ from __future__ import absolute_import, division, print_function INCLUDES = """ -#ifndef OPENSSL_NO_ECDSA #include <openssl/ecdsa.h> -#endif """ TYPES = """ @@ -44,35 +42,5 @@ int ECDSA_size(const EC_KEY *); """ CUSTOMIZATIONS = """ -#ifdef OPENSSL_NO_ECDSA -static const long Cryptography_HAS_ECDSA = 0; - -typedef struct { - BIGNUM *r; - BIGNUM *s; -} ECDSA_SIG; - -ECDSA_SIG* (*ECDSA_SIG_new)() = NULL; -void (*ECDSA_SIG_free)(ECDSA_SIG *) = NULL; -int (*i2d_ECDSA_SIG)(const ECDSA_SIG *, unsigned char **) = NULL; -ECDSA_SIG* (*d2i_ECDSA_SIG)(ECDSA_SIG **s, const unsigned char **, - long) = NULL; -ECDSA_SIG* (*ECDSA_do_sign)(const unsigned char *, int, EC_KEY *eckey) = NULL; -ECDSA_SIG* (*ECDSA_do_sign_ex)(const unsigned char *, int, const BIGNUM *, - const BIGNUM *, EC_KEY *) = NULL; -int (*ECDSA_do_verify)(const unsigned char *, int, const ECDSA_SIG *, - EC_KEY *) = NULL; -int (*ECDSA_sign_setup)(EC_KEY *, BN_CTX *, BIGNUM **, BIGNUM **) = NULL; -int (*ECDSA_sign)(int, const unsigned char *, int, unsigned char *, - unsigned int *, EC_KEY *) = NULL; -int (*ECDSA_sign_ex)(int, const unsigned char *, int dgstlen, unsigned char *, - unsigned int *, const BIGNUM *, const BIGNUM *, - EC_KEY *) = NULL; -int (*ECDSA_verify)(int, const unsigned char *, int, const unsigned char *, - int, EC_KEY *) = NULL; -int (*ECDSA_size)(const EC_KEY *) = NULL; - -#else static const long Cryptography_HAS_ECDSA = 1; -#endif """ |