资料介绍
#definebitcheck8(var,bit)(var((u1t)1(bit)))
u1thcs301Key[8]={0xef,0xcd,0xab,0x89,0x67,0x45,0x23,0x01};/*hcs301Key[0]是低字节*/
u1thcs301Hop[4]={0x5a,0xa5,0x5a,0xa5,};/*32位加密部分,hcs301Hop[0]是低字节*/
staticvoidHcs301Decrypt()
{
u1tcnt1;
u1tcnt0;
u1tmask;
u1ttem;
u1tcarry;
u1tcarry2;
u1ti;
for(cnt1=11+1;cnt1>0;cnt1--)
{
for(cnt0=48;cnt0>0;cnt0--)
{
if((cnt1^0x01)>0)
{
if(bitcheck8(hcs301Hop[2],3)==0)
{
mask=0x01;
}
else
{
mask=0x10;
}
if(bitcheck8(hcs301Hop[1],0)>0)
{
mask=2;
}
if(bitcheck8(hcs301Hop[0],0)>0)
{
mask=1;
}
tem&#