/home/dko/projects/mobilec/tags/MobileC-v1.10.2/MobileC-v1.10.2/src/security/mc_dh.h

Go to the documentation of this file.
00001 /* SVN FILE INFO
00002  * $Revision: 207 $ : Last Committed Revision
00003  * $Date: 2008-07-11 17:55:19 -0700 (Fri, 11 Jul 2008) $ : 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

Generated on Fri Jul 11 17:59:45 2008 for Mobile-C by  doxygen 1.5.4