00001 /* SVN FILE INFO 00002 * $Revision: 199 $ : Last Committed Revision 00003 * $Date: 2008年07月11日 10:33:31 -0700 (2008年7月11日) $ : Last Committed Date */ 00004 #ifndef _MC_DH_H_ 00005 #define _MC_DH_H_ 00006 #include "xyssl-0.9/include/xyssl/rsa.h" 00007 #include "asm_node.h" 00008 #ifndef _WIN32 00009 #include "config.h" 00010 #else 00011 #include "../winconfig.h" 00012 #endif 00013 00014 #ifdef MC_SECURITY 00015 00016 int 00017 dh_ReadPrivKey(rsa_context* rsa); 00018 00019 dh_data_p 00020 dh_data_Initialize(void); 00021 00022 dh_data_p 00023 dh_data_InitializeFromString(char* P, char* G, char* GY); 00024 00025 int 00026 dh_GenPrime(dhm_context* dhm); 00027 00028 int 00029 dh_GetPrime(dhm_context* dhm); 00030 00031 int 00032 dh_GetKeyPair(rsa_context* rsa); 00033 00034 int rsa_GenKeyPair(rsa_context* rsa); 00035 #endif /*MC_SECURITY*/ 00036 #endif