cyassl re-port with cellular comms, PSK test
Dependencies: VodafoneUSBModem_bleedingedge2 mbed-rtos mbed-src
dsa.h
00001 /* dsa.h for openSSL */ 00002 00003 00004 #ifndef CYASSL_DSA_H_ 00005 #define CYASSL_DSA_H_ 00006 00007 00008 #include <cyassl/openssl/ssl.h> 00009 #include <cyassl/openssl/bn.h> 00010 00011 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif 00015 00016 00017 00018 struct CYASSL_DSA { 00019 CYASSL_BIGNUM* p; 00020 CYASSL_BIGNUM* q; 00021 CYASSL_BIGNUM* g; 00022 CYASSL_BIGNUM* pub_key; /* our y */ 00023 CYASSL_BIGNUM* priv_key; /* our x */ 00024 void* internal; /* our Dsa Key */ 00025 char inSet; /* internal set from external ? */ 00026 char exSet; /* external set from internal ? */ 00027 }; 00028 00029 00030 CYASSL_API CYASSL_DSA* CyaSSL_DSA_new(void); 00031 CYASSL_API void CyaSSL_DSA_free(CYASSL_DSA*); 00032 00033 CYASSL_API int CyaSSL_DSA_generate_key(CYASSL_DSA*); 00034 CYASSL_API int CyaSSL_DSA_generate_parameters_ex(CYASSL_DSA*, int bits, 00035 unsigned char* seed, int seedLen, int* counterRet, 00036 unsigned long* hRet, void* cb); 00037 00038 CYASSL_API int CyaSSL_DSA_LoadDer(CYASSL_DSA*, const unsigned char*, int sz); 00039 CYASSL_API int CyaSSL_DSA_do_sign(const unsigned char* d, unsigned char* sigRet, 00040 CYASSL_DSA* dsa); 00041 00042 #define DSA_new CyaSSL_DSA_new 00043 #define DSA_free CyaSSL_DSA_free 00044 00045 #define DSA_generate_key CyaSSL_DSA_generate_key 00046 #define DSA_generate_parameters_ex CyaSSL_DSA_generate_parameters_ex 00047 00048 00049 #ifdef __cplusplus 00050 } /* extern "C" */ 00051 #endif 00052 00053 #endif /* header */
Generated on Thu Jul 14 2022 00:25:23 by 1.7.2