00001 00029 #ifndef INC_MI32_CRYPTO_H 00030 #define INC_MI32_CRYPTO_H 00031 00032 #ifdef RVCSYSDLL 00033 #define LIBEXPORT MI_DLLEXPORT 00034 #else 00035 #define LIBEXPORT MI_DLLIMPORT 00036 #endif 00037 00038 /*** !!! This structure cannot be changed without significant alterations to rvclow.dll !!! */ 00039 00040 struct MCRYPTOHDR { 00041 UINT32 flags; 00042 int keynumber; 00043 int method; 00044 }; 00045 00046 #define MCRYPTO_NeedPassword 0x00000001 00047 #define MCRYPTO_NeedAnyValidKey 0x00000002 00048 #define MCRYPTO_NeedSpecificKey 0x00000004 00049 #define MCRYPTO_ASCII 0x00000008 00050 #define MCRYPTO_UsableByLite 0x00000010 00051 00052 00059 LIBEXPORT int McryptoReadHeader ( 00060 MIUNICODE *ucbuf, 00061 MCRYPTOHDR *hdr, 00062 UINT32 flags 00063 ); 00064 00066 LIBEXPORT int McryptoEncode ( 00067 MIUNICODE **outbuf, 00068 MIUNICODE *inbuf, 00069 MIUNICODE *password, 00070 int keynum, 00071 UINT32 flags 00072 ); 00073 00075 LIBEXPORT int McryptoDecode ( 00076 MIUNICODE **outbuf, 00077 MIUNICODE *inbuf, 00078 MIUNICODE *password, 00079 UINT32 flags 00080 ); 00081 00082 #undef LIBEXPORT 00083 00084 #endif // INC_MI32_CRYPTO_H
1.6.1