www.yzyt.net > rC4 C语言实现

rC4 C语言实现

#include #include #include typedef unsigned long ULONG; void rc4_init(unsigned char *s, unsigned char *data,unsigned Len) { //初始化函数 int i,j; unsigned char k[256] = {0},tmp; for(i = 0;i < 256;i++) { s[i] = i; k[i] = data[i%...

孩子别纠结了,把财富给我了吧!

void re_RC4(unsigned char *S,char *key) { unsigned char T[255]={0}; //问题在这,你的re_T第一个参数是unsigned char *,你传递的参数是 //char,所以不对 re_S(S); re_T(T,key); re_Sbox(S,T); }

单独操作RC4脚试试 如果还没用应该是硬件出了问题吧

网站地图

All rights reserved Powered by www.yzyt.net

copyright ©right 2010-2021。
www.yzyt.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com