2013-08-22
展开全部
给你一个头文件的例子,#ifndef __RIJNDAEL_ALG_H
#define __RIJNDAEL_ALG_H#define MAXKC (256/32)
#define MAXROUNDS 14typedef unsigned char word8;
typedef unsigned short word16;
typedef unsigned int word32;int rijndaelKeySched (word8 k[MAXKC][4], int keyBits,
word8 rk[MAXROUNDS+1][4][4]);
int rijndaelKeyEnctoDec (int keyBits, word8 W[MAXROUNDS+1][4][4]);
int rijndaelEncrypt (word8 a[16], word8 b[16],
word8 rk[MAXROUNDS+1][4][4]);
int rijndaelEncryptRound (word8 a[4][4],
word8 rk[MAXROUNDS+1][4][4], int rounds);
int rijndaelDecrypt (word8 a[16], word8 b[16],
word8 rk[MAXROUNDS+1][4][4]);
int rijndaelDecryptRound (word8 a[4][4],
word8 rk[MAXROUNDS+1][4][4], int rounds);#endif在主程序中,你需要先包含这个头文件,然后就可以调用里面的内容
#define __RIJNDAEL_ALG_H#define MAXKC (256/32)
#define MAXROUNDS 14typedef unsigned char word8;
typedef unsigned short word16;
typedef unsigned int word32;int rijndaelKeySched (word8 k[MAXKC][4], int keyBits,
word8 rk[MAXROUNDS+1][4][4]);
int rijndaelKeyEnctoDec (int keyBits, word8 W[MAXROUNDS+1][4][4]);
int rijndaelEncrypt (word8 a[16], word8 b[16],
word8 rk[MAXROUNDS+1][4][4]);
int rijndaelEncryptRound (word8 a[4][4],
word8 rk[MAXROUNDS+1][4][4], int rounds);
int rijndaelDecrypt (word8 a[16], word8 b[16],
word8 rk[MAXROUNDS+1][4][4]);
int rijndaelDecryptRound (word8 a[4][4],
word8 rk[MAXROUNDS+1][4][4], int rounds);#endif在主程序中,你需要先包含这个头文件,然后就可以调用里面的内容
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询