?? mars.h
字號(hào):
/*********************************************************************/
/*-文件名:mars.h */
/*- */
/*-功能: 實(shí)現(xiàn)mars加密算法dll */
/*- */
/*-說(shuō)明: */
/*- The MARS algorithm is covered by a pending patent application */
/*- owned by IBM, who intend to offer a royalty free license under */
/*- any issued patent that results from such application if MARS is */
/*- selected as the AES algorithm. In the interim, you may evaluate */
/*- the MARS algorithm for your personal, lawful, non-profit purposes*/
/*- as an end user. */
/*- */
/*-本程序的所有權(quán)利由作者保留 */
/*- */
/*- */
/*-版本號(hào):1.0.0(2002.6) */
/*- */
/*- */
/*-AUTHOR:吳真(WUZHEN) */
/*- */
/*********************************************************************/
/*如果采用c++編譯器的話采用如下宏定義
#define DllExport extern "C" __declspec(dllexport)
*/
#define DllExport __declspec(dllexport)
/*加密接口函數(shù)*/
DllExport int mars_enc( unsigned long * data ,
unsigned long datalen,/*以4字節(jié)為單位*/
unsigned long *outkey);
/*解密接口函數(shù)*/
DllExport int mars_dec( unsigned long * data ,unsigned long datalen, unsigned long *outkey);
DllExport int make_enckey( unsigned long *key,/*用戶輸入的128~480位密鑰*/
unsigned long keylen,/*以字節(jié)為單位*/
unsigned long *outkey/*存放用于加密的40套密鑰*/
);
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -