- UID
- 145606
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2004-6-2
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2005-7-28 20:01:03
|
显示全部楼层
没人愿意指教吗
/ 3-Des test
#include "WjcDes.h"
#include "stdio.h"
#include "string.h"
#include "memory.h"
void main()
{
char key[]={0,2,0,0,9,3,5,1,9,8,0,0,9,1,7},buf[255];
char str[]="Welcome to My 3-DES Test! --WangJunchuan\n"
"Northeastern University (www.neu.edu.cn)\n"
"Email: blackdrn@sohu.com";
memset(buf, 0, sizeof(buf));
strcpy(buf, str);
puts("\nBefore encrypting");
puts(buf);
Des_Go(buf, buf, sizeof(str), key, sizeof(key), ENCRYPT);
puts("\nAfter encrypting");
puts(buf);
Des_Go(buf, buf, sizeof(str), key, sizeof(key), DECRYPT);
puts("\nAfter decrypting");
puts(buf);
getchar();
}
这是C语言的测试程序 CPP源文件,请问要怎样写才可以用LISP调用呢,急,谢谢! |
|