00001 #ifndef _MC_DH_H_
00002 #define _MC_DH_H_
00003 #include "xyssl-0.7/include/xyssl/rsa.h"
00004 #include "asm_node.h"
00005 #ifndef _WIN32
00006 #include "config.h"
00007 #else
00008 #include "../winconfig.h"
00009 #endif
00010
00011 #ifdef MC_SECURITY
00012
00013 int
00014 dh_ReadPrivKey(rsa_context* rsa);
00015
00016 dh_data_p
00017 dh_data_Initialize(void);
00018
00019 dh_data_p
00020 dh_data_InitializeFromString(char* P, char* G, char* GY);
00021
00022 int
00023 dh_GenPrime(dhm_context* dhm);
00024
00025 int
00026 dh_GetPrime(dhm_context* dhm);
00027
00028 int
00029 dh_GetKeyPair(rsa_context* rsa);
00030
00031 int rsa_GenKeyPair(rsa_context* rsa);
00032 #endif
00033 #endif