diff options
author | Mohammed Attia <skeuomorf@gmail.com> | 2014-04-21 13:30:42 +0200 |
---|---|---|
committer | Mohammed Attia <skeuomorf@gmail.com> | 2014-04-22 12:35:39 +0200 |
commit | 81e03b8a71d5ce3c0b82a7fad1b70addfe140793 (patch) | |
tree | 6aa24b1885448630d2c3daf6285a053cfe6c62f1 | |
parent | 8f70f8c94739b0fe9719fc8c1a21f2bcf07a6e13 (diff) | |
download | cryptography-81e03b8a71d5ce3c0b82a7fad1b70addfe140793.tar.gz cryptography-81e03b8a71d5ce3c0b82a7fad1b70addfe140793.tar.bz2 cryptography-81e03b8a71d5ce3c0b82a7fad1b70addfe140793.zip |
Add bindings for DSA_SIG and related functions
-rw-r--r-- | cryptography/hazmat/bindings/openssl/dsa.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/dsa.py b/cryptography/hazmat/bindings/openssl/dsa.py index 40d3b8ee..51a02666 100644 --- a/cryptography/hazmat/bindings/openssl/dsa.py +++ b/cryptography/hazmat/bindings/openssl/dsa.py @@ -31,6 +31,10 @@ typedef struct dsa_st { BIGNUM *pub_key; ...; } DSA; +typedef struct { + BIGNUM *r; + BIGNUM *s; +} DSA_SIG; """ FUNCTIONS = """ @@ -39,6 +43,10 @@ DSA *DSA_generate_parameters(int, unsigned char *, int, int *, unsigned long *, int DSA_generate_key(DSA *); DSA *DSA_new(void); void DSA_free(DSA *); +DSA_SIG *DSA_SIG_new(void); +void DSA_SIG_free(DSA_SIG *); +int i2d_DSA_SIG(const DSA_SIG *, unsigned char **); +DSA_SIG *d2i_DSA_SIG(DSA_SIG **, const unsigned char **, long); """ MACROS = """ |