Keeloq 编解码测试

您所在的位置:网站首页 keeloq算法程序 Keeloq 编解码测试

Keeloq 编解码测试

2024-07-14 15:31| 来源: 网络整理| 查看: 265

参考资料:

http://en.wikipedia.org/wiki/KeeLoq

http://cryptolib.com/ciphers/keeloq/

测试程序:

#include

#include

typedef unsigned long u32; typedef unsigned long long u64;

/*\  *  Corrected KeeLoq Encryption and Decryption functions by Ruptor.  *  Use at your own risk! This source is not copyrighted.  *  Encoder encrypts an all-0 block, decoder decrypts it.  *  KeeLoq cipher encrypts 32-bit blocks with 64-bit keys.  *  Key is XORed with a 32-bit IV incremented on each use.  *  See http://www.keeloq.boom.ru/decryption.pdf for more details.  *  KeeLoq algorithm itself is not patented. \*/

#define KeeLoq_N



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3