temp1=(unsigned long)xs[4*i+1];
temp2=(unsigned long)xs[4*i+2];
temp3=(unsigned long)xs[4*i+3];
temp4=(unsigned long)xs[4*i+4];
zhi1[i]=(temp1<<24)+(temp2<<16)+(temp3<<8)+temp4;
zhi2[i]=(temp4<<24)+(temp3<<16)+(temp2<<8)+temp1;
这是一段密码算法中的代码,看不懂为什么要这样处理xs(char数组)中的字符?求高手解释,谢谢啦!或者给相关的资料也行,1671012@163.com,万分感谢!
temp2=(unsigned long)xs[4*i+2];
temp3=(unsigned long)xs[4*i+3];
temp4=(unsigned long)xs[4*i+4];
zhi1[i]=(temp1<<24)+(temp2<<16)+(temp3<<8)+temp4;
zhi2[i]=(temp4<<24)+(temp3<<16)+(temp2<<8)+temp1;
这是一段密码算法中的代码,看不懂为什么要这样处理xs(char数组)中的字符?求高手解释,谢谢啦!或者给相关的资料也行,1671012@163.com,万分感谢!
