Home | History | Annotate | Download | only in asm

Lines Matching full:"$ key"

206 $key="edi";
250 my ($v0,$v1) = ($acc,$key);
300 &mov ($key,$__key); # reincarnate v1 as key
307 { my ($v0,$v1) = ($key,$acc);
354 &mov ($key,$__key); # reincarnate v0 as key
381 &movq ("mm3",QWP(16,$key));
415 &xor ("ecx",&DWP(24,$key)); # t[2]
421 &mov ("ebx",&DWP(28,$key)); # t[3]
438 my $tmp = $key;
443 # 4xenccompact with extra argument $key value is left there...
444 if ($i==3) { &$Fn ($key,$__key); }##%edx
482 my $r2 = $key ;
507 &mov ($__key,$key); # save key
509 &xor ($s0,&DWP(0,$key)); # xor with key
510 &xor ($s1,&DWP(4,$key));
511 &xor ($s2,&DWP(8,$key));
512 &xor ($s3,&DWP(12,$key));
514 &mov ($acc,&DWP(240,$key)); # load key->rounds
516 &lea ($acc,&DWP(0,$key,$acc,8));
520 &mov ($key,&DWP(0-128,$tbl));
522 &mov ($key,&DWP(64-128,$tbl));
524 &mov ($key,&DWP(128-128,$tbl));
526 &mov ($key,&DWP(192-128,$tbl));
540 &mov ($key,$__key);
542 &add ($key,16); # advance rd_key
543 &xor ($s0,&DWP(0,$key));
544 &xor ($s1,&DWP(4,$key));
545 &xor ($s2,&DWP(8,$key));
546 &xor ($s3,&DWP(12,$key));
548 &cmp ($key,$__end);
549 &mov ($__key,$key);
557 &xor ($s0,&DWP(16,$key));
558 &xor ($s1,&DWP(20,$key));
559 &xor ($s2,&DWP(24,$key));
560 &xor ($s3,&DWP(28,$key));
617 &mov ($__key,$key);
623 &movz ($key,&LB("ebx")); # 10
628 &movz ($acc,&BP(-128,$tbl,$key,1)); # 10
629 &movz ($key,&HB("ebx")); # 11
633 &movz ($acc,&BP(-128,$tbl,$key,1)); # 11
634 &movz ($key,&HB("eax")); # 5
639 &movz ($acc,&BP(-128,$tbl,$key,1)); # 5
640 &movz ($key,&HB("ebx")); # 15
643 &movz ($acc,&BP(-128,$tbl,$key,1)); # 15
644 &movz ($key,&LB("eax")); # 4
648 &movz ($acc,&BP(-128,$tbl,$key,1)); # 4
649 &movz ($key,&LB("ebx")); # 14
652 &movz ("ecx",&BP(-128,$tbl,$key,1)); # 14
653 &movz ($key,&HB("eax")); # 3
658 &movz ($acc,&BP(-128,$tbl,$key,1)); # 3
659 &movz ($key,&HB("ebx")); # 9
662 &movz ($acc,&BP(-128,$tbl,$key,1)); # 9
663 &movz ($key,&LB("ebx")); # 8
668 &movz ($acc,&BP(-128,$tbl,$key,1)); # 8
669 &movz ($key,&LB("eax")); # 2
672 &movz ("ecx",&BP(-128,$tbl,$key,1)); # 2
673 &movz ($key,&HB("eax")); # 7
680 &movz ($acc,&BP(-128,$tbl,$key,1)); # 7
681 &movz ($key,&HB("ebx")); # 13
687 &movz ($acc,&BP(-128,$tbl,$key,1)); # 13
693 &mov ($key,$__key);
702 &pxor ("mm0",&QWP(0,$key)); # 7, 6, 5, 4, 3, 2, 1, 0
703 &pxor ("mm4",&QWP(8,$key)); # 15,14,13,12,11,10, 9, 8
706 &mov ($acc,&DWP(240,$key)); # load key->rounds
708 &lea ($acc,&DWP(0,$key,$acc,8));
727 &add ($key,16);
728 &cmp ($key,$__end);
750 &movq ("mm2",&QWP(0,$key)); &movq ("mm6",&QWP(8,$key));
764 &pxor ("mm0",&QWP(0,$key));
765 &pxor ("mm4",&QWP(8,$key));
777 my $tmp = $key;
781 if ($i==3) { &mov ($key,$__key); }##%edx
811 my $tmp = $key;
814 if ($i==3) { &mov ($key,$__key); }##%edx
851 &exch ($s1="edi",$key="ebx");
856 &mov ($__key,$key); # save key
858 &xor ($s0,&DWP(0,$key)); # xor with key
859 &xor ($s1,&DWP(4,$key));
860 &xor ($s2,&DWP(8,$key));
861 &xor ($s3,&DWP(12,$key));
863 &mov ($acc,&DWP(240,$key)); # load key->rounds
867 &lea ($acc,&DWP(0,$key,$acc,8));
879 &add ($key,16); # advance rd_key
880 &xor ($s0,&DWP(0,$key));
881 &xor ($s1,&DWP(4,$key));
882 &xor ($s2,&DWP(8,$key));
883 &xor ($s3,&DWP(12,$key));
884 &cmp ($key,$__end);
885 &mov ($__key,$key);
904 &xor ($s0,&DWP(16*$i+0,$key));
905 $key));
906 &xor ($s2,&DWP(16*$i+8,$key));
907 &xor ($s3,&DWP(16*$i+12,$key));
909 &add ($key,32);
910 &mov ($__key,$key); # advance rd_key
921 &xor ($s0,&DWP(16*$i+0,$key));
922 &xor ($s1,&DWP(16*$i+4,$key));
923 &xor ($s2,&DWP(16*$i+8,$key));
924 &xor ($s3,&DWP(16*$i+12,$key));
926 &add ($key,32);
927 &mov ($__key,$key); # advance rd_key
938 &xor ($s0,&DWP(16*$i+0,$key));
939 &xor ($s1,&DWP(16*$i+4,$key));
940 &xor ($s2,&DWP(16*$i+8,$key));
941 &xor ($s3,&DWP(16*$i+12,$key));
947 &mov ($s1="ebx",$key="edi");
955 &add ($key,$small_footprint?16:160);
956 &xor ($s0,&DWP(0,$key));
957 &xor ($s1,&DWP(4,$key));
958 &xor ($s2,&DWP(8,$key));
959 &xor ($s3,&DWP(12,$key));
1171 &mov ($key,&wparam(2)); # load key
1178 &lea ($s1,&DWP(-64-63,$key));
1237 my $tmp = $key;
1242 # 4xdeccompact with extra argument $key, $s0 and $s1 values
1244 if($i==3) { &$Fn ($key,$__key); }
1277 my $tmp = $key;
1336 &mov ($__key,$key); # save key
1338 &xor ($s0,&DWP(0,$key)); # xor with key
1339 &xor ($s1,&DWP(4,$key));
1340 &xor ($s2,&DWP(8,$key));
1341 &xor ($s3,&DWP(12,$key));
1343 &mov ($acc,&DWP(240,$key)); # load key->rounds
1346 &lea ($acc,&DWP(0,$key,$acc,8));
1350 &mov ($key,&DWP(0-128,$tbl));
1352 &mov ($key,&DWP(64-128,$tbl));
1354 &mov ($key,&DWP(128-128,$tbl));
1356 &mov ($key,&DWP(192-128,$tbl));
1369 &mov ($key,$__key);
1371 &add ($key,16); # advance rd_key
1372 &xor ($s0,&DWP(0,$key));
1373 &xor ($s1,&DWP(4,$key));
1374 &xor ($s2,&DWP(8,$key));
1375 &xor ($s3,&DWP(12,$key));
1377 &cmp ($key,$__end);
1378 &mov ($__key,$key);
1386 &xor ($s0,&DWP(16,$key));
1387 &xor ($s1,&DWP(20,$key));
1388 &xor ($s2,&DWP(24,$key));
1389 &xor ($s3,&DWP(28,$key));
1404 &mov ($__key,$key);
1410 &movz ($key,&LB("ebx")); # 10
1415 &movz ($acc,&BP(-128,$tbl,$key,1)); # 10
1416 &movz ($key,&HB("ebx")); # 11
1420 &movz ($acc,&BP(-128,$tbl,$key,1)); # 11
1421 &movz ($key,&HB("eax")); # 7
1426 &movz ($acc,&BP(-128,$tbl,$key,1)); # 7
1427 &movz ($key,&HB("ebx")); # 13
1430 &movz ($acc,&BP(-128,$tbl,$key,1)); # 13
1431 &movz ($key,&LB("eax")); # 6
1436 &movz ($acc,&BP(-128,$tbl,$key,1)); # 6
1437 &movz ($key,&LB("ebx")); # 12
1441 &movz ("ecx",&BP(-128,$tbl,$key,1)); # 12
1442 &movz ($key,&LB("eax")); # 4
1445 &movz ($acc,&BP(-128,$tbl,$key,1)); # 4
1446 &movz ($key,&LB("ebx")); # 14
1448 &movz ($acc,&BP(-128,$tbl,$key,1)); # 14
1449 &movz ($key,&HB("eax")); # 5
1454 &movz ($acc,&BP(-128,$tbl,$key,1)); # 5
1455 &movz ($key,&HB("ebx")); # 15
1459 &movz ("edx",&BP(-128,$tbl,$key,1)); # 15
1460 &movz ($key,&HB("ebx")); # 9
1467 &movz ($acc,&BP(-128,$tbl,$key,1)); # 9
1468 &movz ($key,&LB("eax")); # 2
1473 &movz ($acc,&BP(-128,$tbl,$key,1)); # 2
1480 &mov ($key,$__key);
1489 &pxor ("mm0",&QWP(0,$key)); # 7, 6, 5, 4, 3, 2, 1, 0
1490 &pxor ("mm4",&QWP(8,$key)); # 15,14,13,12,11,10, 9, 8
1493 &mov ($acc,&DWP(240,$key)); # load key->rounds
1495 &lea ($acc,&DWP(0,$key,$acc,8));
1514 &add ($key,16);
1515 &cmp ($key,$__end);
1567 &movq ("mm2",&QWP(0,$key)); &movq ("mm6",&QWP(8,$key));
1583 &pxor ("mm0",&QWP(0,$key));
1584 &pxor ("mm4",&QWP(8,$key));
1596 my $tmp = $key;
1603 if($i==3) { &mov ($key,$__key); }
1629 my $tmp = $key;
1642 if($i==3) { &mov ($key,$__key); }
1674 &mov ($__key,$key); # save key
1676 &xor ($s0,&DWP(0,$key)); # xor with key
1677 &xor ($s1,&DWP(4,$key));
1678 &xor ($s2,&DWP(8,$key));
1679 &xor ($s3,&DWP(12,$key));
1681 &mov ($acc,&DWP(240,$key)); # load key->rounds
1685 &lea ($acc,&DWP(0,$key,$acc,8));
1692 &add ($key,16); # advance rd_key
1693 &xor ($s0,&DWP(0,$key));
1694 &xor ($s1,&DWP(4,$key));
1695 &xor ($s2,&DWP(8,$key));
1696 &xor ($s3,&DWP(12,$key));
1697 &cmp ($key,$__end);
1698 &mov ($__key,$key);
1713 &xor ($s0,&DWP(16*$i+0,$key));
1714 &xor ($s1,&DWP(16*$i+4,$key));
1715 &xor ($s2,&DWP(16*$i+8,$key));
1716 &xor ($s3,&DWP(16*$i+12,$key));
1718 &add ($key,32);
1719 &mov ($__key,$key); # advance rd_key
1726 &xor ($s0,&DWP(16*$i+0,$key));
1727 &xor ($s1,&DWP(16*$i+4,$key));
1728 &xor ($s2,&DWP(16*$i+8,$key));
1729 &xor ($s3,&DWP(16*$i+12,$key));
1731 &add ($key,32);
1732 &mov ($__key,$key); # advance rd_key
1739 &xor ($s0,&DWP(16*$i+0,$key));
1740 &xor ($s1,&DWP(16*$i+4,$key));
1741 &xor ($s2,&DWP(16*$i+8,$key));
1742 &xor ($s3,&DWP(16*$i+12,$key));
1751 &add ($key,$small_footprint?16:160);
1752 &xor ($s0,&DWP(0,$key));
1753 &xor ($s1,&DWP(4,$key));
1754 &xor ($s2,&DWP(8,$key));
1755 &xor ($s3,&DWP(12,$key));
1962 &mov ($key,&wparam(2)); # load key
1969 &lea ($s1,&DWP(-64-63,$key));
2104 &mov ($key,&DWP(12,$s3)); # load key
2111 &mov ($_key,$key); # save copy of key
2116 &mov ($s1 eq "ebx" ? $s1 : "",$key);
2119 &mov ("esi",$key);
2131 &mov ($key,16);
2138 &sub ($key,1);
2143 &mov ($key,$_ivp);
2149 &mov ($s0,&DWP(0,$key)); # load iv
2150 &mov ($s1,&DWP(4,$key));
2153 &mov ($s2,&DWP(8,$key));
2154 &mov ($s3,&DWP(12,$key));
2161 &mov ($key,$_key); # load key
2165 &mov ($key,$_out); # load out
2167 &mov (&DWP(0,$key),$s0); # save output data
2168 &mov (&DWP(4,$key),$s1);
2169 &mov (&DWP(8,$key),$s2);
2170 &mov (&DWP(12,$key),$s3);
2175 &lea ($s3,&DWP(16,$key)); # advance out
2181 &mov ($s2,&DWP(8,$key)); # restore last 2 dwords
2182 &mov ($s3,&DWP(12,$key));
2209 &mov ($_tmp,$key);
2218 &mov ($key,$_key); # load key
2221 &mov ($key,$_tmp); # load ivp
2223 &xor ($s0,&DWP(0,$key)); # xor iv
2224 &xor ($s1,&DWP(4,$key));
2225 &xor ($s2,&DWP(8,$key));
2226 &xor ($s3,&DWP(12,$key));
2228 &mov ($key,$_out); # load out
2231 &mov (&DWP(0,$key),$s0); # write output
2232 &mov (&DWP(4,$key),$s1);
2233 &mov (&DWP(8,$key),$s2);
2234 &mov (&DWP(12,$key),$s3);
2240 &lea ($key,&DWP(16,$key)); # advance out
2241 &mov ($_out,$key); # save out
2245 &mov ($key,$_tmp); # load temp ivp
2247 &mov ($s0,&DWP(0,$key)); # load iv
2248 &mov ($s1,&DWP(4,$key));
2249 &mov ($s2,&DWP(8,$key));
2250 &mov ($s3,&DWP(12,$key));
2264 &lea ($key,$ivec);
2265 &mov (&DWP(0,$key),$s0); # copy to temp
2266 &mov (&DWP(4,$key),$s1);
2267 &mov (&DWP(8,$key),$s2);
2268 &mov (&DWP(12,$key),$s3);
2270 &mov ($key,$_key); # load key
2273 &mov ($key,$_ivp); # load ivp
2275 &xor ($s0,&DWP(0,$key)); # xor iv
2276 &xor ($s1,&DWP(4,$key));
2277 &xor ($s2,&DWP(8,$key));
2278 &xor ($s3,&DWP(12,$key));
2294 &mov (&DWP(0,$key),$s0); # copy iv
2295 &mov (&DWP(4,$key),$s1);
2296 &mov (&DWP(8,$key),$s2);
2297 &mov (&DWP(12,$key),$s3);
2326 &mov ($key,&wparam(3)); # load key
2332 # ... and make sure it doesn't alias with $key modulo 1024
2333 &lea ($s1,&DWP(-80-63,$key));
2339 # pick S-box copy which can't overlap with stack frame or $key
2356 #&mov ($key,&DWP(12,$s3)); # load key
2363 &mov ($_key,$key); # save copy of key
2366 &mov ($key,$acc);
2381 &movq ("mm0",&QWP(0,$key)); # load iv
2382 &movq ("mm4",&QWP(8,$key));
2388 &mov ($key,$_key);
2392 &mov ($key,$_out); # load out
2395 &movq (&QWP(0,$key),"mm0"); # save output data
2396 &movq (&QWP(8,$key),"mm4");
2400 &lea ($s3,&DWP(16,$key)); # advance out
2418 &mov ($s0,&DWP(0,$key)); # load iv
2419 &mov ($s1,&DWP(4,$key));
2422 &mov ($s2,&DWP(8,$key));
2423 &mov ($s3,&DWP(12,$key));
2430 &mov ($key,$_key); # load key
2434 &mov ($key,$_out); # load out
2436 &mov (&DWP(0,$key),$s0); # save output data
2437 &mov (&DWP(4,$key),$s1);
2438 &mov (&DWP(8,$key),$s2);
2439 &mov (&DWP(12,$key),$s3);
2444 &lea ($s3,&DWP(16,$key)); # advance out
2453 &mov ($s2,&DWP(8,$key)); # restore last dwords
2454 &mov ($s3,&DWP(12,$key));
2467 &mov ($key eq "edi"? $key:"",$s3); # load out to edi
2470 &cmp ($key,$acc eq "esi"? $acc:""); # compare with inp
2476 &lea ($key,&DWP(0,$key,$s2));
2483 &mov ($key,$_ivp); # restore ivp
2485 &mov ($s0,&DWP(0,$key));
2486 &mov ($s1,&DWP(4,$key));
2500 &mov ($key,$_key);
2507 &mov ($key,$_ivp); # load ivp
2512 &pxor ("mm0",&QWP(0,$key)); # xor iv
2513 &pxor ("mm4",&QWP(8,$key));
2515 &movq (&QWP(0,$key),"mm1"); # copy input to iv
2516 &movq (&QWP(8,$key),"mm5");
2558 &lea ($key,$ivec);
2559 &mov (&DWP(0,$key),$s0); # copy to temp
2560 &mov (&DWP(4,$key),$s1);
2561 &mov (&DWP(8,$key),$s2);
2562 &mov (&DWP(12,$key),$s3);
2564 &mov ($key,$_key); # load key
2567 &mov ($key,$_ivp); # load ivp
2569 &xor ($s0,&DWP(0,$key)); # xor iv
2570 &xor ($s1,&DWP(4,$key));
2571 &xor ($s2,&DWP(8,$key));
2572 &xor ($s3,&DWP(12,$key));
2594 &mov (&DWP(0,$key),$s0); # copy it to iv
2595 &mov (&DWP(4,$key),$s1);
2596 &mov (&DWP(8,$key),$s2);
2597 &mov (&DWP(12,$key),$s3);
2621 &mov (&DWP(0,$key),$s0); # copy it to iv
2622 &mov (&DWP(4,$key),$s1);
2623 &mov (&DWP(8,$key),$s2);
2624 &mov (&DWP(12,$key),$s3);
2876 { my ($i,$key,$tp1,$tp2,$tp4,$tp8) = @_;
2912 &mov ($tmp,&DWP(4*($i+1),$key)); # modulo-scheduled load
2927 &mov (&DWP(4*$i,$key),$tp1);
2971 &mov ($key,&wparam(2));
2972 &mov ($acc,&DWP(240,$key)); # pull number of rounds
2974 &lea ($acc,&DWP(0,$key,$acc,8));
2977 &mov ($s0,&DWP(16,$key)); # modulo-scheduled load
2979 &add ($key,16);
2980 &deckey (0,$key,$s0,$s1,$s2,$s3);
2981 &deckey (1,$key,$s1,$s2,$s3,$s0);
2982 &deckey (2,$key,$s2,$s3,$s0,$s1);
2983 &deckey (3,$key,$s3,$s0,$s1,$s2);
2984 &cmp ($key,&wparam(2));