Lines Matching refs:idx
57 $idx="esi";
93 &xor ($t0,$idx); # t0^=key[0]
95 &movz ($idx,&HB($t0)); # (t0>>8)&0xff
96 &mov ($t3,&DWP($SBOX3_3033,$Tbl,$idx,8)); # t3=SBOX3_3033[0]
97 &movz ($idx,&LB($t0)); # (t0>>0)&0xff
98 &xor ($t3,&DWP($SBOX4_4404,$Tbl,$idx,8)); # t3^=SBOX4_4404[0]
100 &movz ($idx,&LB($t1)); # (t1>>0)&0xff
101 &mov ($t2,&DWP($SBOX1_1110,$Tbl,$idx,8)); # t2=SBOX1_1110[1]
102 &movz ($idx,&HB($t0)); # (t0>>24)&0xff
103 &xor ($t3,&DWP($SBOX1_1110,$Tbl,$idx,8)); # t3^=SBOX1_1110[0]
104 &movz ($idx,&HB($t1)); # (t1>>8)&0xff
105 &xor ($t2,&DWP($SBOX4_4404,$Tbl,$idx,8)); # t2^=SBOX4_4404[1]
109 &movz ($idx,&HB($t1)); # (t1>>24)&0xff
113 &xor ($t2,&DWP($SBOX2_0222,$Tbl,$idx,8)); # t2^=SBOX2_0222[1]
114 &movz ($idx,&LB($t1)); # (t1>>16)&0xff
117 &xor ($t2,&DWP($SBOX3_3033,$Tbl,$idx,8)); # t2^=SBOX3_3033[1]
118 &mov ($idx,&DWP($seed+($i+1)*$scale,$key)); # prefetch key[i+1]
132 &mov ($idx,&wparam(1)); # load plaintext pointer
158 &mov (@T[0],&DWP(0,$idx)); # load plaintext
159 &mov (@T[1],&DWP(4,$idx));
160 &mov (@T[2],&DWP(8,$idx));
162 &mov (@T[3],&DWP(12,$idx));
171 &mov ($idx,&wparam(3)); # load ciphertext pointer
175 &mov (&DWP(0,$idx),@T[0]); # write ciphertext
176 &mov (&DWP(4,$idx),@T[1]);
177 &mov (&DWP(8,$idx),@T[2]);
178 &mov (&DWP(12,$idx),@T[3]);
196 &mov ($idx,&wparam(0)); # load plaintext pointer
223 &mov (@T[0],&DWP(0,$idx)); # load plaintext
224 &mov (@T[1],&DWP(4,$idx));
225 &mov (@T[2],&DWP(8,$idx));
227 &mov (@T[3],&DWP(12,$idx));
236 &mov ($idx,&wparam(1)); # load ciphertext pointer
240 &mov (&DWP(0,$idx),@T[0]); # write ciphertext
241 &mov (&DWP(4,$idx),@T[1]);
242 &mov (&DWP(8,$idx),@T[2]);
243 &mov (&DWP(12,$idx),@T[3]);
252 &mov ($idx,&DWP(16,$key)); # prefetch key[4]
267 &and ($idx,@T[0]);
269 &rotl ($idx,1);
271 &xor (@T[1],$idx);
276 &mov ($idx,&DWP(4,$key));
278 &or ($idx,@T[1]);
280 &xor (@T[0],$idx);
284 &mov ($idx,&DWP(16,$key)); # prefetch key[4]
293 &xor (@T[0],$idx); # $idx is preloaded with key[0]
307 &mov ($idx,&wparam(1)); # load ciphertext pointer
333 &mov (@T[0],&DWP(0,$idx)); # load ciphertext
334 &mov (@T[1],&DWP(4,$idx));
335 &mov (@T[2],&DWP(8,$idx));
337 &mov (@T[3],&DWP(12,$idx));
346 &mov ($idx,&wparam(3)); # load plaintext pointer
350 &mov (&DWP(0,$idx),@T[0]); # write plaintext
351 &mov (&DWP(4,$idx),@T[1]);
352 &mov (&DWP(8,$idx),@T[2]);
353 &mov (&DWP(12,$idx),@T[3]);
371 &mov ($idx,&wparam(0)); # load ciphertext pointer
398 &mov (@T[0],&DWP(0,$idx)); # load ciphertext
399 &mov (@T[1],&DWP(4,$idx));
400 &mov (@T[2],&DWP(8,$idx));
402 &mov (@T[3],&DWP(12,$idx));
411 &mov ($idx,&wparam(1)); # load plaintext pointer
415 &mov (&DWP(0,$idx),@T[0]); # write plaintext
416 &mov (&DWP(4,$idx),@T[1]);
417 &mov (&DWP(8,$idx),@T[2]);
418 &mov (&DWP(12,$idx),@T[3]);
427 &mov ($idx,&DWP(-8,$key)); # prefetch key[-2]
442 &and ($idx,@T[0]);
444 &rotl ($idx,1);
446 &xor (@T[1],$idx);
451 &mov ($idx,&DWP(12,$key));
453 &or ($idx,@T[1]);
455 &xor (@T[0],$idx);
459 &mov ($idx,&DWP(-8,$key)); # prefetch key[4]
468 &xor (@T[2],$idx); # $idx is preloaded with key[2]
484 &mov ($idx,$i0);
488 &shld ($i3,$idx,$rot);
506 &mov ($idx,$i1);
507 &shr ($idx,32-$rot);
509 &or ($i0,$idx);
510 &mov ($idx,$i2);
513 &shr ($idx,32-$rot);
514 &or ($i1,$idx);
516 &mov ($idx,$i3);
517 &shr ($idx,32-$rot);
520 &or ($i2,$idx);
562 &mov ($idx,&wparam(1));
565 &mov (@T[0],&DWP(0,$idx)); # load 0-127 bits
566 &mov (@T[1],&DWP(4,$idx));
567 &mov (@T[2],&DWP(8,$idx));
568 &mov (@T[3],&DWP(12,$idx));
580 &mov (@T[0],&DWP(16,$idx)); # load 128-191 bits
581 &mov (@T[1],&DWP(20,$idx));
584 &mov (@T[2],&DWP(24,$idx)); # load 192-255 bits
585 &mov (@T[3],&DWP(28,$idx));
612 &mov ($idx,&DWP($step*8,$key)); # prefetch SIGMA[0]
622 &mov ($idx,&wparam(2));
623 &xor (@T[0],&DWP(0*8+0,$idx)); # ^KL
624 &xor (@T[1],&DWP(0*8+4,$idx));
625 &xor (@T[2],&DWP(1*8+0,$idx));
626 &xor (@T[3],&DWP(1*8+4,$idx));
628 &mov ($idx,&DWP($step*8,$key)); # prefetch SIGMA[4]
638 &mov ($idx,&wparam(0));
639 &cmp ($idx,128);
671 &mov ($idx,&wparam(2));
672 &_saveround (6,$idx,@T); # temporary storage for KA!
674 &xor (@T[0],&DWP(4*8+0,$idx)); # KA^KR
675 &xor (@T[1],&DWP(4*8+4,$idx));
676 &xor (@T[2],&DWP(5*8+0,$idx));
677 &xor (@T[3],&DWP(5*8+4,$idx));
679 &mov ($idx,&DWP($step*8,$key)); # prefetch SIGMA[8]
845 &lea ($idx,&DWP(-64,"esp"));
846 &and ($idx,-64);
851 &sub ($key,$idx);
854 &sub ($idx,$key);
858 &exch ("esp",$idx);
860 &mov ($_esp,$idx); # save %esp
873 &mov ($idx,32);
880 &dec ($idx);
884 &mov ($idx,$_inp);
906 &xor ($s0,&DWP(0,$idx)); # xor input data
907 &xor ($s1,&DWP(4,$idx));
908 &xor ($s2,&DWP(8,$idx));
910 &xor ($s3,&DWP(12,$idx));
918 &mov ($idx,$_inp); # load inp
932 &lea ($idx,&DWP(16,$idx));
933 &mov ($_inp,$idx); # save inp
944 &mov ($idx,$_ivp); # load ivp
947 &mov (&DWP(0,$idx),$s0); # save ivec
948 &mov (&DWP(4,$idx),$s1);
949 &mov (&DWP(8,$idx),$s2);
950 &mov (&DWP(12,$idx),$s3);
964 &cmp ($key,$idx); # compare with inp
978 &mov ($idx,$_out); # output as input
991 &cmp ($idx,$_out);
998 &mov ($s0,&DWP(0,$idx)); # read input
999 &mov ($s1,&DWP(4,$idx));
1000 &mov ($s2,&DWP(8,$idx));
1002 &mov ($s3,&DWP(12,$idx));
1011 &mov ($idx,$_len); # load len
1022 &sub ($idx,16);
1024 &mov ($_len,$idx); # save len
1025 &mov ($idx,$_inp); # load inp
1033 &mov ($_tmp,$idx); # save ivp
1034 &lea ($idx,&DWP(16,$idx));
1035 &mov ($_inp,$idx); # save inp
1043 &mov ($idx,$_ivp); # load user ivp
1048 &mov (&DWP(0,$idx),$s0); # copy back to user
1049 &mov (&DWP(4,$idx),$s1);
1050 &mov (&DWP(8,$idx),$s2);
1051 &mov (&DWP(12,$idx),$s3);
1060 &lea ($s2 eq "ecx" ? $s2 : "",&DWP(16,$idx));
1061 &mov ($idx eq "esi" ? $idx : "",$key);
1070 &mov ($s0,&DWP(0,$idx)); # read input
1071 &mov ($s1,&DWP(4,$idx));
1072 &mov ($s2,&DWP(8,$idx));
1073 &mov ($s3,&DWP(12,$idx));
1088 &mov ($idx,$_out); # load out
1099 &mov (&DWP(0,$idx),$s0); # write output
1100 &mov (&DWP(4,$idx),$s1);
1101 &mov (&DWP(8,$idx),$s2);
1102 &mov (&DWP(12,$idx),$s3);
1104 &lea ($idx,&DWP(16,$idx));
1105 &mov ($_out,$idx); # save out
1107 &lea ($idx,$ivec);
1108 &mov ($s0,&DWP(0,$idx)); # read temp
1109 &mov ($s1,&DWP(4,$idx));
1110 &mov ($s2,&DWP(8,$idx));
1111 &mov ($s3,&DWP(12,$idx));
1118 &mov ($idx,$_inp); # load inp
1120 &lea ($idx,&DWP(16,$idx));
1121 &mov ($_inp,$idx); # save inp
1133 &lea ($idx eq "esi" ? $idx : "",$ivec);
1135 &lea ($idx,&DWP(16,$idx,$s2));