Type cast fixes in aes-586.pl.
This commit is contained in:
parent
affaea59fe
commit
bb9d68489c
1 changed files with 4 additions and 4 deletions
|
@ -512,11 +512,11 @@ sub declast()
|
||||||
if($i==3) { &mov ($key,&DWP(12,"esp")); }
|
if($i==3) { &mov ($key,&DWP(12,"esp")); }
|
||||||
else { &mov ($out,$s[0]); }
|
else { &mov ($out,$s[0]); }
|
||||||
&and ($out,0xFF);
|
&and ($out,0xFF);
|
||||||
&movz ($out,&DWP(2048,$td,$out,1));
|
&movz ($out,&BP(2048,$td,$out,1));
|
||||||
|
|
||||||
if ($i==3) { $tmp=$s[1]; }
|
if ($i==3) { $tmp=$s[1]; }
|
||||||
&movz ($tmp,&HB($s[1]));
|
&movz ($tmp,&HB($s[1]));
|
||||||
&movz ($tmp,&DWP(2048,$td,$tmp,1));
|
&movz ($tmp,&BP(2048,$td,$tmp,1));
|
||||||
&shl ($tmp,8);
|
&shl ($tmp,8);
|
||||||
&xor ($out,$tmp);
|
&xor ($out,$tmp);
|
||||||
|
|
||||||
|
@ -524,14 +524,14 @@ sub declast()
|
||||||
else { mov ($tmp,$s[2]); }
|
else { mov ($tmp,$s[2]); }
|
||||||
&shr ($tmp,16);
|
&shr ($tmp,16);
|
||||||
&and ($tmp,0xFF);
|
&and ($tmp,0xFF);
|
||||||
&movz ($tmp,&DWP(2048,$td,$tmp,1));
|
&movz ($tmp,&BP(2048,$td,$tmp,1));
|
||||||
&shl ($tmp,16);
|
&shl ($tmp,16);
|
||||||
&xor ($out,$tmp);
|
&xor ($out,$tmp);
|
||||||
|
|
||||||
if ($i==3) { $tmp=$s[3]; &mov ($s[2],&DWP(8,"esp")); }
|
if ($i==3) { $tmp=$s[3]; &mov ($s[2],&DWP(8,"esp")); }
|
||||||
else { &mov ($tmp,$s[3]); }
|
else { &mov ($tmp,$s[3]); }
|
||||||
&shr ($tmp,24);
|
&shr ($tmp,24);
|
||||||
&movz ($tmp,&DWP(2048,$td,$tmp,1));
|
&movz ($tmp,&BP(2048,$td,$tmp,1));
|
||||||
&shl ($tmp,24);
|
&shl ($tmp,24);
|
||||||
&xor ($out,$tmp);
|
&xor ($out,$tmp);
|
||||||
if ($i<2) { &mov (&DWP(4+4*$i,"esp"),$out); }
|
if ($i<2) { &mov (&DWP(4+4*$i,"esp"),$out); }
|
||||||
|
|
Loading…
Reference in a new issue