1 Star 0 Fork 0

jeenter / xxtea

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.c 525 Bytes
一键复制 编辑 原始数据 按行查看 历史
吴群策 提交于 2014-10-22 14:11 . tea 算法
#include <stdio.h>
#include "xxtea.h"
int main(int argc, char *argv[])
{
unsigned long testBuf[4] = {
0x30AE7b12, 0x34560020, 0x30AE7b12, 0x34560020
};
unsigned long testKey[4] = {
0x12345678, 0x23456781, 0x34567812, 0x45678123
};
btea(testBuf, 3, testKey);
btea(testBuf, -3, testKey);
btea(testBuf, 2, testKey);
btea(testBuf, -2, testKey);
encipher(16, testBuf, testKey);
decipher(16, testBuf, testKey);
tea_encrypt(testBuf, testKey);
tea_decrypt(testBuf, testKey);
printf("Hello C-Free!\n");
return 0;
}
C
1
https://gitee.com/jeenter/xxtea.git
git@gitee.com:jeenter/xxtea.git
jeenter
xxtea
xxtea
master

搜索帮助