参考资料:
http://en.wikipedia.org/wiki/KeeLoq
http://cryptolib.com/ciphers/keeloq/
测试程序:
#include <stdio.h>
#include <stdlib.h>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.
\*/
#d
KeeLoq加密算法测试与解析

这篇博客主要探讨了KeeLoq加密算法,参考了Wikipedia和Cryptolib的相关资料,并提供了一个C语言的测试程序来演示算法的实现。
最低0.47元/天 解锁文章
2314

被折叠的 条评论
为什么被折叠?



