Lines Matching refs:key

211 $key="edi";
255 my ($v0,$v1) = ($acc,$key);
305 &mov ($key,$__key); # reincarnate v1 as key
312 { my ($v0,$v1) = ($key,$acc);
359 &mov ($key,$__key); # reincarnate v0 as key
386 &movq ("mm3",QWP(16,$key));
420 &xor ("ecx",&DWP(24,$key)); # t[2]
426 &mov ("ebx",&DWP(28,$key)); # t[3]
443 my $tmp = $key;
449 if ($i==3) { &$Fn ($key,$__key); }##%edx
487 my $r2 = $key ;
512 &mov ($__key,$key); # save key
514 &xor ($s0,&DWP(0,$key)); # xor with key
515 &xor ($s1,&DWP(4,$key));
516 &xor ($s2,&DWP(8,$key));
517 &xor ($s3,&DWP(12,$key));
519 &mov ($acc,&DWP(240,$key)); # load key->rounds
521 &lea ($acc,&DWP(0,$key,$acc,8));
525 &mov ($key,&DWP(0-128,$tbl));
527 &mov ($key,&DWP(64-128,$tbl));
529 &mov ($key,&DWP(128-128,$tbl));
531 &mov ($key,&DWP(192-128,$tbl));
545 &mov ($key,$__key);
547 &add ($key,16); # advance rd_key
548 &xor ($s0,&DWP(0,$key));
549 &xor ($s1,&DWP(4,$key));
550 &xor ($s2,&DWP(8,$key));
551 &xor ($s3,&DWP(12,$key));
553 &cmp ($key,$__end);
554 &mov ($__key,$key);
562 &xor ($s0,&DWP(16,$key));
563 &xor ($s1,&DWP(20,$key));
564 &xor ($s2,&DWP(24,$key));
565 &xor ($s3,&DWP(28,$key));
622 &mov ($__key,$key);
628 &movz ($key,&LB("ebx")); # 10
633 &movz ($acc,&BP(-128,$tbl,$key,1)); # 10
634 &movz ($key,&HB("ebx")); # 11
638 &movz ($acc,&BP(-128,$tbl,$key,1)); # 11
639 &movz ($key,&HB("eax")); # 5
644 &movz ($acc,&BP(-128,$tbl,$key,1)); # 5
645 &movz ($key,&HB("ebx")); # 15
648 &movz ($acc,&BP(-128,$tbl,$key,1)); # 15
649 &movz ($key,&LB("eax")); # 4
653 &movz ($acc,&BP(-128,$tbl,$key,1)); # 4
654 &movz ($key,&LB("ebx")); # 14
657 &movz ("ecx",&BP(-128,$tbl,$key,1)); # 14
658 &movz ($key,&HB("eax")); # 3
663 &movz ($acc,&BP(-128,$tbl,$key,1)); # 3
664 &movz ($key,&HB("ebx")); # 9
667 &movz ($acc,&BP(-128,$tbl,$key,1)); # 9
668 &movz ($key,&LB("ebx")); # 8
673 &movz ($acc,&BP(-128,$tbl,$key,1)); # 8
674 &movz ($key,&LB("eax")); # 2
677 &movz ("ecx",&BP(-128,$tbl,$key,1)); # 2
678 &movz ($key,&HB("eax")); # 7
685 &movz ($acc,&BP(-128,$tbl,$key,1)); # 7
686 &movz ($key,&HB("ebx")); # 13
692 &movz ($acc,&BP(-128,$tbl,$key,1)); # 13
698 &mov ($key,$__key);
707 &pxor ("mm0",&QWP(0,$key)); # 7, 6, 5, 4, 3, 2, 1, 0
708 &pxor ("mm4",&QWP(8,$key)); # 15,14,13,12,11,10, 9, 8
711 &mov ($acc,&DWP(240,$key)); # load key->rounds
713 &lea ($acc,&DWP(0,$key,$acc,8));
732 &add ($key,16);
733 &cmp ($key,$__end);
755 &movq ("mm2",&QWP(0,$key)); &movq ("mm6",&QWP(8,$key));
769 &pxor ("mm0",&QWP(0,$key));
770 &pxor ("mm4",&QWP(8,$key));
782 my $tmp = $key;
786 if ($i==3) { &mov ($key,$__key); }##%edx
816 my $tmp = $key;
819 if ($i==3) { &mov ($key,$__key); }##%edx
856 &exch ($s1="edi",$key="ebx");
861 &mov ($__key,$key); # save key
863 &xor ($s0,&DWP(0,$key)); # xor with key
864 &xor ($s1,&DWP(4,$key));
865 &xor ($s2,&DWP(8,$key));
866 &xor ($s3,&DWP(12,$key));
868 &mov ($acc,&DWP(240,$key)); # load key->rounds
872 &lea ($acc,&DWP(0,$key,$acc,8));
884 &add ($key,16); # advance rd_key
885 &xor ($s0,&DWP(0,$key));
886 &xor ($s1,&DWP(4,$key));
887 &xor ($s2,&DWP(8,$key));
888 &xor ($s3,&DWP(12,$key));
889 &cmp ($key,$__end);
890 &mov ($__key,$key);
909 &xor ($s0,&DWP(16*$i+0,$key));
910 &xor ($s1,&DWP(16*$i+4,$key));
911 &xor ($s2,&DWP(16*$i+8,$key));
912 &xor ($s3,&DWP(16*$i+12,$key));
914 &add ($key,32);
915 &mov ($__key,$key); # advance rd_key
926 &xor ($s0,&DWP(16*$i+0,$key));
927 &xor ($s1,&DWP(16*$i+4,$key));
928 &xor ($s2,&DWP(16*$i+8,$key));
929 &xor ($s3,&DWP(16*$i+12,$key));
931 &add ($key,32);
932 &mov ($__key,$key); # advance rd_key
943 &xor ($s0,&DWP(16*$i+0,$key));
944 &xor ($s1,&DWP(16*$i+4,$key));
945 &xor ($s2,&DWP(16*$i+8,$key));
946 &xor ($s3,&DWP(16*$i+12,$key));
952 &mov ($s1="ebx",$key="edi");
960 &add ($key,$small_footprint?16:160);
961 &xor ($s0,&DWP(0,$key));
962 &xor ($s1,&DWP(4,$key));
963 &xor ($s2,&DWP(8,$key));
964 &xor ($s3,&DWP(12,$key));
1176 &mov ($key,&wparam(2)); # load key
1183 &lea ($s1,&DWP(-64-63,$key));
1242 my $tmp = $key;
1249 if($i==3) { &$Fn ($key,$__key); }
1282 my $tmp = $key;
1341 &mov ($__key,$key); # save key
1343 &xor ($s0,&DWP(0,$key)); # xor with key
1344 &xor ($s1,&DWP(4,$key));
1345 &xor ($s2,&DWP(8,$key));
1346 &xor ($s3,&DWP(12,$key));
1348 &mov ($acc,&DWP(240,$key)); # load key->rounds
1351 &lea ($acc,&DWP(0,$key,$acc,8));
1355 &mov ($key,&DWP(0-128,$tbl));
1357 &mov ($key,&DWP(64-128,$tbl));
1359 &mov ($key,&DWP(128-128,$tbl));
1361 &mov ($key,&DWP(192-128,$tbl));
1374 &mov ($key,$__key);
1376 &add ($key,16); # advance rd_key
1377 &xor ($s0,&DWP(0,$key));
1378 &xor ($s1,&DWP(4,$key));
1379 &xor ($s2,&DWP(8,$key));
1380 &xor ($s3,&DWP(12,$key));
1382 &cmp ($key,$__end);
1383 &mov ($__key,$key);
1391 &xor ($s0,&DWP(16,$key));
1392 &xor ($s1,&DWP(20,$key));
1393 &xor ($s2,&DWP(24,$key));
1394 &xor ($s3,&DWP(28,$key));
1409 &mov ($__key,$key);
1415 &movz ($key,&LB("ebx")); # 10
1420 &movz ($acc,&BP(-128,$tbl,$key,1)); # 10
1421 &movz ($key,&HB("ebx")); # 11
1425 &movz ($acc,&BP(-128,$tbl,$key,1)); # 11
1426 &movz ($key,&HB("eax")); # 7
1431 &movz ($acc,&BP(-128,$tbl,$key,1)); # 7
1432 &movz ($key,&HB("ebx")); # 13
1435 &movz ($acc,&BP(-128,$tbl,$key,1)); # 13
1436 &movz ($key,&LB("eax")); # 6
1441 &movz ($acc,&BP(-128,$tbl,$key,1)); # 6
1442 &movz ($key,&LB("ebx")); # 12
1446 &movz ("ecx",&BP(-128,$tbl,$key,1)); # 12
1447 &movz ($key,&LB("eax")); # 4
1450 &movz ($acc,&BP(-128,$tbl,$key,1)); # 4
1451 &movz ($key,&LB("ebx")); # 14
1453 &movz ($acc,&BP(-128,$tbl,$key,1)); # 14
1454 &movz ($key,&HB("eax")); # 5
1459 &movz ($acc,&BP(-128,$tbl,$key,1)); # 5
1460 &movz ($key,&HB("ebx")); # 15
1464 &movz ("edx",&BP(-128,$tbl,$key,1)); # 15
1465 &movz ($key,&HB("ebx")); # 9
1472 &movz ($acc,&BP(-128,$tbl,$key,1)); # 9
1473 &movz ($key,&LB("eax")); # 2
1478 &movz ($acc,&BP(-128,$tbl,$key,1)); # 2
1485 &mov ($key,$__key);
1494 &pxor ("mm0",&QWP(0,$key)); # 7, 6, 5, 4, 3, 2, 1, 0
1495 &pxor ("mm4",&QWP(8,$key)); # 15,14,13,12,11,10, 9, 8
1498 &mov ($acc,&DWP(240,$key)); # load key->rounds
1500 &lea ($acc,&DWP(0,$key,$acc,8));
1519 &add ($key,16);
1520 &cmp ($key,$__end);
1572 &movq ("mm2",&QWP(0,$key)); &movq ("mm6",&QWP(8,$key));
1588 &pxor ("mm0",&QWP(0,$key));
1589 &pxor ("mm4",&QWP(8,$key));
1601 my $tmp = $key;
1608 if($i==3) { &mov ($key,$__key); }
1634 my $tmp = $key;
1647 if($i==3) { &mov ($key,$__key); }
1679 &mov ($__key,$key); # save key
1681 &xor ($s0,&DWP(0,$key)); # xor with key
1682 &xor ($s1,&DWP(4,$key));
1683 &xor ($s2,&DWP(8,$key));
1684 &xor ($s3,&DWP(12,$key));
1686 &mov ($acc,&DWP(240,$key)); # load key->rounds
1690 &lea ($acc,&DWP(0,$key,$acc,8));
1697 &add ($key,16); # advance rd_key
1698 &xor ($s0,&DWP(0,$key));
1699 &xor ($s1,&DWP(4,$key));
1700 &xor ($s2,&DWP(8,$key));
1701 &xor ($s3,&DWP(12,$key));
1702 &cmp ($key,$__end);
1703 &mov ($__key,$key);
1718 &xor ($s0,&DWP(16*$i+0,$key));
1719 &xor ($s1,&DWP(16*$i+4,$key));
1720 &xor ($s2,&DWP(16*$i+8,$key));
1721 &xor ($s3,&DWP(16*$i+12,$key));
1723 &add ($key,32);
1724 &mov ($__key,$key); # advance rd_key
1731 &xor ($s0,&DWP(16*$i+0,$key));
1732 &xor ($s1,&DWP(16*$i+4,$key));
1733 &xor ($s2,&DWP(16*$i+8,$key));
1734 &xor ($s3,&DWP(16*$i+12,$key));
1736 &add ($key,32);
1737 &mov ($__key,$key); # advance rd_key
1744 &xor ($s0,&DWP(16*$i+0,$key));
1745 &xor ($s1,&DWP(16*$i+4,$key));
1746 &xor ($s2,&DWP(16*$i+8,$key));
1747 &xor ($s3,&DWP(16*$i+12,$key));
1756 &add ($key,$small_footprint?16:160);
1757 &xor ($s0,&DWP(0,$key));
1758 &xor ($s1,&DWP(4,$key));
1759 &xor ($s2,&DWP(8,$key));
1760 &xor ($s3,&DWP(12,$key));
1967 &mov ($key,&wparam(2)); # load key
1974 &lea ($s1,&DWP(-64-63,$key));
2109 &mov ($key,&DWP(12,$s3)); # load key
2116 &mov ($_key,$key); # save copy of key
2121 &mov ($s1 eq "ebx" ? $s1 : "",$key);
2124 &mov ("esi",$key);
2136 &mov ($key,16);
2143 &sub ($key,1);
2148 &mov ($key,$_ivp);
2154 &mov ($s0,&DWP(0,$key)); # load iv
2155 &mov ($s1,&DWP(4,$key));
2158 &mov ($s2,&DWP(8,$key));
2159 &mov ($s3,&DWP(12,$key));
2166 &mov ($key,$_key); # load key
2170 &mov ($key,$_out); # load out
2172 &mov (&DWP(0,$key),$s0); # save output data
2173 &mov (&DWP(4,$key),$s1);
2174 &mov (&DWP(8,$key),$s2);
2175 &mov (&DWP(12,$key),$s3);
2180 &lea ($s3,&DWP(16,$key)); # advance out
2186 &mov ($s2,&DWP(8,$key)); # restore last 2 dwords
2187 &mov ($s3,&DWP(12,$key));
2214 &mov ($_tmp,$key);
2223 &mov ($key,$_key); # load key
2226 &mov ($key,$_tmp); # load ivp
2228 &xor ($s0,&DWP(0,$key)); # xor iv
2229 &xor ($s1,&DWP(4,$key));
2230 &xor ($s2,&DWP(8,$key));
2231 &xor ($s3,&DWP(12,$key));
2233 &mov ($key,$_out); # load out
2236 &mov (&DWP(0,$key),$s0); # write output
2237 &mov (&DWP(4,$key),$s1);
2238 &mov (&DWP(8,$key),$s2);
2239 &mov (&DWP(12,$key),$s3);
2245 &lea ($key,&DWP(16,$key)); # advance out
2246 &mov ($_out,$key); # save out
2250 &mov ($key,$_tmp); # load temp ivp
2252 &mov ($s0,&DWP(0,$key)); # load iv
2253 &mov ($s1,&DWP(4,$key));
2254 &mov ($s2,&DWP(8,$key));
2255 &mov ($s3,&DWP(12,$key));
2269 &lea ($key,$ivec);
2270 &mov (&DWP(0,$key),$s0); # copy to temp
2271 &mov (&DWP(4,$key),$s1);
2272 &mov (&DWP(8,$key),$s2);
2273 &mov (&DWP(12,$key),$s3);
2275 &mov ($key,$_key); # load key
2278 &mov ($key,$_ivp); # load ivp
2280 &xor ($s0,&DWP(0,$key)); # xor iv
2281 &xor ($s1,&DWP(4,$key));
2282 &xor ($s2,&DWP(8,$key));
2283 &xor ($s3,&DWP(12,$key));
2299 &mov (&DWP(0,$key),$s0); # copy iv
2300 &mov (&DWP(4,$key),$s1);
2301 &mov (&DWP(8,$key),$s2);
2302 &mov (&DWP(12,$key),$s3);
2331 &mov ($key,&wparam(3)); # load key
2338 &lea ($s1,&DWP(-80-63,$key));
2368 &mov ($_key,$key); # save copy of key
2371 &mov ($key,$acc);
2386 &movq ("mm0",&QWP(0,$key)); # load iv
2387 &movq ("mm4",&QWP(8,$key));
2393 &mov ($key,$_key);
2397 &mov ($key,$_out); # load out
2400 &movq (&QWP(0,$key),"mm0"); # save output data
2401 &movq (&QWP(8,$key),"mm4");
2405 &lea ($s3,&DWP(16,$key)); # advance out
2423 &mov ($s0,&DWP(0,$key)); # load iv
2424 &mov ($s1,&DWP(4,$key));
2427 &mov ($s2,&DWP(8,$key));
2428 &mov ($s3,&DWP(12,$key));
2435 &mov ($key,$_key); # load key
2439 &mov ($key,$_out); # load out
2441 &mov (&DWP(0,$key),$s0); # save output data
2442 &mov (&DWP(4,$key),$s1);
2443 &mov (&DWP(8,$key),$s2);
2444 &mov (&DWP(12,$key),$s3);
2449 &lea ($s3,&DWP(16,$key)); # advance out
2458 &mov ($s2,&DWP(8,$key)); # restore last dwords
2459 &mov ($s3,&DWP(12,$key));
2472 &mov ($key eq "edi"? $key:"",$s3); # load out to edi
2475 &cmp ($key,$acc eq "esi"? $acc:""); # compare with inp
2481 &lea ($key,&DWP(0,$key,$s2));
2488 &mov ($key,$_ivp); # restore ivp
2490 &mov ($s0,&DWP(0,$key));
2491 &mov ($s1,&DWP(4,$key));
2505 &mov ($key,$_key);
2512 &mov ($key,$_ivp); # load ivp
2517 &pxor ("mm0",&QWP(0,$key)); # xor iv
2518 &pxor ("mm4",&QWP(8,$key));
2520 &movq (&QWP(0,$key),"mm1"); # copy input to iv
2521 &movq (&QWP(8,$key),"mm5");
2563 &lea ($key,$ivec);
2564 &mov (&DWP(0,$key),$s0); # copy to temp
2565 &mov (&DWP(4,$key),$s1);
2566 &mov (&DWP(8,$key),$s2);
2567 &mov (&DWP(12,$key),$s3);
2569 &mov ($key,$_key); # load key
2572 &mov ($key,$_ivp); # load ivp
2574 &xor ($s0,&DWP(0,$key)); # xor iv
2575 &xor ($s1,&DWP(4,$key));
2576 &xor ($s2,&DWP(8,$key));
2577 &xor ($s3,&DWP(12,$key));
2599 &mov (&DWP(0,$key),$s0); # copy it to iv
2600 &mov (&DWP(4,$key),$s1);
2601 &mov (&DWP(8,$key),$s2);
2602 &mov (&DWP(12,$key),$s3);
2626 &mov (&DWP(0,$key),$s0); # copy it to iv
2627 &mov (&DWP(4,$key),$s1);
2628 &mov (&DWP(8,$key),$s2);
2629 &mov (&DWP(12,$key),$s3);
2881 { my ($i,$key,$tp1,$tp2,$tp4,$tp8) = @_;
2917 &mov ($tmp,&DWP(4*($i+1),$key)); # modulo-scheduled load
2932 &mov (&DWP(4*$i,$key),$tp1);
2976 &mov ($key,&wparam(2));
2977 &mov ($acc,&DWP(240,$key)); # pull number of rounds
2979 &lea ($acc,&DWP(0,$key,$acc,8));
2982 &mov ($s0,&DWP(16,$key)); # modulo-scheduled load
2984 &add ($key,16);
2985 &deckey (0,$key,$s0,$s1,$s2,$s3);
2986 &deckey (1,$key,$s1,$s2,$s3,$s0);
2987 &deckey (2,$key,$s2,$s3,$s0,$s1);
2988 &deckey (3,$key,$s3,$s0,$s1,$s2);
2989 &cmp ($key,&wparam(2));