8 #include <cyassl/openssl/ssl.h>
9 #include <cyassl/openssl/bn.h>
19 typedef struct CYASSL_DH {
22 CYASSL_BIGNUM* pub_key; /* openssh deference g^x */
23 CYASSL_BIGNUM* priv_key; /* openssh deference x */
24 void* internal; /* our DH */
25 char inSet; /* internal set from external ? */
26 char exSet; /* external set from internal ? */
30 CYASSL_API CYASSL_DH* CyaSSL_DH_new(void);
31 CYASSL_API void CyaSSL_DH_free(CYASSL_DH*);
33 CYASSL_API int CyaSSL_DH_size(CYASSL_DH*);
34 CYASSL_API int CyaSSL_DH_generate_key(CYASSL_DH*);
35 CYASSL_API int CyaSSL_DH_compute_key(unsigned char* key, CYASSL_BIGNUM* pub,
40 #define DH_new CyaSSL_DH_new
41 #define DH_free CyaSSL_DH_free
43 #define DH_size CyaSSL_DH_size
44 #define DH_generate_key CyaSSL_DH_generate_key
45 #define DH_compute_key CyaSSL_DH_compute_key