CyaSSL 3.0.0
Dependents: HTTPClient-SSL HTTPClient HTTPClient-SSL http_access ... more
cyassl/openssl/dsa.h@0:1239e9b70ca2, 2014-07-12 (annotated)
- Committer:
- wolfSSL
- Date:
- Sat Jul 12 07:18:23 2014 +0000
- Revision:
- 0:1239e9b70ca2
CyaSSL 3.0.0;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wolfSSL | 0:1239e9b70ca2 | 1 | /* dsa.h for openSSL */ |
wolfSSL | 0:1239e9b70ca2 | 2 | |
wolfSSL | 0:1239e9b70ca2 | 3 | |
wolfSSL | 0:1239e9b70ca2 | 4 | #ifndef CYASSL_DSA_H_ |
wolfSSL | 0:1239e9b70ca2 | 5 | #define CYASSL_DSA_H_ |
wolfSSL | 0:1239e9b70ca2 | 6 | |
wolfSSL | 0:1239e9b70ca2 | 7 | |
wolfSSL | 0:1239e9b70ca2 | 8 | #include <cyassl/openssl/ssl.h> |
wolfSSL | 0:1239e9b70ca2 | 9 | #include <cyassl/openssl/bn.h> |
wolfSSL | 0:1239e9b70ca2 | 10 | |
wolfSSL | 0:1239e9b70ca2 | 11 | |
wolfSSL | 0:1239e9b70ca2 | 12 | #ifdef __cplusplus |
wolfSSL | 0:1239e9b70ca2 | 13 | extern "C" { |
wolfSSL | 0:1239e9b70ca2 | 14 | #endif |
wolfSSL | 0:1239e9b70ca2 | 15 | |
wolfSSL | 0:1239e9b70ca2 | 16 | |
wolfSSL | 0:1239e9b70ca2 | 17 | |
wolfSSL | 0:1239e9b70ca2 | 18 | struct CYASSL_DSA { |
wolfSSL | 0:1239e9b70ca2 | 19 | CYASSL_BIGNUM* p; |
wolfSSL | 0:1239e9b70ca2 | 20 | CYASSL_BIGNUM* q; |
wolfSSL | 0:1239e9b70ca2 | 21 | CYASSL_BIGNUM* g; |
wolfSSL | 0:1239e9b70ca2 | 22 | CYASSL_BIGNUM* pub_key; /* our y */ |
wolfSSL | 0:1239e9b70ca2 | 23 | CYASSL_BIGNUM* priv_key; /* our x */ |
wolfSSL | 0:1239e9b70ca2 | 24 | void* internal; /* our Dsa Key */ |
wolfSSL | 0:1239e9b70ca2 | 25 | char inSet; /* internal set from external ? */ |
wolfSSL | 0:1239e9b70ca2 | 26 | char exSet; /* external set from internal ? */ |
wolfSSL | 0:1239e9b70ca2 | 27 | }; |
wolfSSL | 0:1239e9b70ca2 | 28 | |
wolfSSL | 0:1239e9b70ca2 | 29 | |
wolfSSL | 0:1239e9b70ca2 | 30 | CYASSL_API CYASSL_DSA* CyaSSL_DSA_new(void); |
wolfSSL | 0:1239e9b70ca2 | 31 | CYASSL_API void CyaSSL_DSA_free(CYASSL_DSA*); |
wolfSSL | 0:1239e9b70ca2 | 32 | |
wolfSSL | 0:1239e9b70ca2 | 33 | CYASSL_API int CyaSSL_DSA_generate_key(CYASSL_DSA*); |
wolfSSL | 0:1239e9b70ca2 | 34 | CYASSL_API int CyaSSL_DSA_generate_parameters_ex(CYASSL_DSA*, int bits, |
wolfSSL | 0:1239e9b70ca2 | 35 | unsigned char* seed, int seedLen, int* counterRet, |
wolfSSL | 0:1239e9b70ca2 | 36 | unsigned long* hRet, void* cb); |
wolfSSL | 0:1239e9b70ca2 | 37 | |
wolfSSL | 0:1239e9b70ca2 | 38 | CYASSL_API int CyaSSL_DSA_LoadDer(CYASSL_DSA*, const unsigned char*, int sz); |
wolfSSL | 0:1239e9b70ca2 | 39 | CYASSL_API int CyaSSL_DSA_do_sign(const unsigned char* d, unsigned char* sigRet, |
wolfSSL | 0:1239e9b70ca2 | 40 | CYASSL_DSA* dsa); |
wolfSSL | 0:1239e9b70ca2 | 41 | |
wolfSSL | 0:1239e9b70ca2 | 42 | #define DSA_new CyaSSL_DSA_new |
wolfSSL | 0:1239e9b70ca2 | 43 | #define DSA_free CyaSSL_DSA_free |
wolfSSL | 0:1239e9b70ca2 | 44 | |
wolfSSL | 0:1239e9b70ca2 | 45 | #define DSA_generate_key CyaSSL_DSA_generate_key |
wolfSSL | 0:1239e9b70ca2 | 46 | #define DSA_generate_parameters_ex CyaSSL_DSA_generate_parameters_ex |
wolfSSL | 0:1239e9b70ca2 | 47 | |
wolfSSL | 0:1239e9b70ca2 | 48 | |
wolfSSL | 0:1239e9b70ca2 | 49 | #ifdef __cplusplus |
wolfSSL | 0:1239e9b70ca2 | 50 | } /* extern "C" */ |
wolfSSL | 0:1239e9b70ca2 | 51 | #endif |
wolfSSL | 0:1239e9b70ca2 | 52 | |
wolfSSL | 0:1239e9b70ca2 | 53 | #endif /* header */ |
wolfSSL | 0:1239e9b70ca2 | 54 |