Lines Matching +full:0 +full:x1b000000

103 $LITTLE_ENDIAN = ($flavour=~/le$/) ? $SIZE_T : 0;
105 $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
121 my ($zero,$in0,$in1,$key,$rcon,$mask,$tmp)=map("v$_",(0..6));
131 .long 0x01000000, 0x01000000, 0x01000000, 0x01000000 ?rev
132 .long 0x1b000000, 0x1b000000, 0x1b000000, 0x1b000000 ?rev
133 .long 0x0d0e0f0c, 0x0d0e0f0c, 0x0d0e0f0c, 0x0d0e0f0c ?rev
134 .long 0,0,0,0 ?asis
135 .long 0x0f102132, 0x43546576, 0x8798a9ba, 0xcbdcedfe
140 addi $ptr,$ptr,-0x58
143 .long 0
144 .byte 0,12,0x14,0,0,0,0,0
153 ${UCMP}i $inp,0
154 beq- Lenc_key_abort # if ($inp==0) return -1;
155 ${UCMP}i $out,0
156 beq- Lenc_key_abort # if ($out==0) return -1;
162 andi. r0,$bits,0x3f
165 lis r0,0xfff0
173 lvx $in0,0,$inp
175 lvsr $key,0,r9 # borrow $key
176 li r8,0x20
178 lvx $in1,0,$inp
179 le?vspltisb $mask,0x0f # borrow $mask
180 lvx $rcon,0,$ptr
183 addi $ptr,$ptr,0x10
189 ?lvsr $outperm,0,$out
191 lvx $outhead,0,$out
208 stvx $stage,0,$out
220 lvx $rcon,0,$ptr # last two round keys
228 stvx $stage,0,$out
245 stvx $stage,0,$out
257 stvx $stage,0,$out
260 addi $out,$out,0x50
267 lvx $tmp,0,$inp
272 stvx $stage,0,$out
306 stvx $stage,0,$out
318 stvx $stage,0,$out
331 stvx $stage,0,$out
337 addi $out,$out,0x20
342 lvx $tmp,0,$inp
348 stvx $stage,0,$out
360 stvx $stage,0,$out
373 stvx $stage,0,$out
393 lvx $in1,0,$inp # redundant in aligned case
395 stvx $in1,0,$inp
396 li $ptr,0
398 stw $rounds,0($out)
403 .long 0
404 .byte 0,12,0x14,1,0,0,3,0
405 .long 0
415 cmpwi r3,0
425 lwz r0, 0($inp)
430 lwz r9, 0($out)
434 stw r0, 0($out)
449 .long 0
450 .byte 0,12,4,1,0x80,0,3,0
451 .long 0
465 lis r0,0xfc00
470 lvx v0,0,$inp
473 lvsl v2,0,$inp # inpperm
474 le?vspltisb v4,0x0f
475 ?lvsl v3,0,r11 # outperm
479 lvx v1,0,$key
480 ?lvsl v5,0,$key # keyperm
514 lvx v1,0,$out # outhead
518 stvx v1,0,$out
524 .long 0
525 .byte 0,12,0x14,0,0,0,3,0
526 .long 0
536 my ($rndkey0,$rndkey1,$inout,$tmp)= map("v$_",(0..3));
544 cmpwi $enc,0 # test direction
545 lis r0,0xffe0
551 le?vspltisb $tmp,0x0f
553 lvx $ivec,0,$ivp # load [unaligned] iv
554 lvsl $inpperm,0,$ivp
560 ?lvsl $keyperm,0,$key # prepare for unaligned key
563 lvsr $inpperm,0,r11 # prepare for unaligned load
564 lvx $inptail,0,$inp
568 ?lvsr $outperm,0,$out # prepare for unaligned store
570 lvx $outhead,0,$out
581 lvx $inptail,0,$inp
586 lvx $rndkey0,0,$key
618 stvx $inout,0,$out
629 lvx $inptail,0,$inp
634 lvx $rndkey0,0,$key
667 stvx $inout,0,$out
673 lvx $inout,0,$out # redundant in aligned case
675 stvx $inout,0,$out
681 le?vspltisb $tmp,0x0f
682 ?lvsl $outperm,0,$enc
685 lvx $outhead,0,$ivp
689 stvx $inout,0,$ivp
695 .long 0
696 .byte 0,12,0x14,0,0,0,6,0
697 .long 0
702 my ($x00,$x10,$x20,$x30,$x40,$x50,$x60,$x70)=map("r$_",(0,8,26..31));
703 my ($in0, $in1, $in2, $in3, $in4, $in5, $in6, $in7 )=map("v$_",(0..3,10..13));
739 li $x10,0x10
740 $PUSH r26,`$FRAME+21*16+0*$SIZE_T`($sp)
741 li $x20,0x20
743 li $x30,0x30
745 li $x40,0x40
747 li $x50,0x50
749 li $x60,0x60
751 li $x70,0x70
759 addi $key,$key,0x20
768 addi $key,$key,0x20
773 addi $key_,$key_,0x20
797 #lvx $inptail,0,$inp # "caller" already did this
803 le?lvsl $inpperm,0,$idx
804 le?vspltisb $tmp,0x0f
821 addi $inp,$inp,0x80
844 addi $key_,$key_,0x20
867 subfe. r0,r0,r0 # borrow?-1:0
961 addi $inp,$inp,0x80
988 addi $out,$out,0x80
1008 addi $key_,$key_,0x20
1120 addi $out,$out,0x70
1145 addi $out,$out,0x60
1167 addi $out,$out,0x50
1186 addi $out,$out,0x40
1202 addi $out,$out,0x30
1215 addi $out,$out,0x20
1224 stvx_u $out7,0,$out
1225 addi $out,$out,0x10
1229 stvx_u $ivec,0,$ivp # write [unaligned] iv
1273 $POP r26,`$FRAME+21*16+0*$SIZE_T`($sp)
1281 .long 0
1282 .byte 0,12,0x14,0,0x80,6,6,0
1283 .long 0
1309 my ($rndkey0,$rndkey1,$inout,$tmp)= map("v$_",(0..3));
1319 lis r0,0xfff0
1325 le?vspltisb $tmp,0x0f
1327 lvx $ivec,0,$ivp # load [unaligned] iv
1328 lvsl $inpperm,0,$ivp
1336 ?lvsl $keyperm,0,$key # prepare for unaligned key
1339 lvsr $inpperm,0,r11 # prepare for unaligned load
1340 lvx $inptail,0,$inp
1351 ?lvsr $outperm,0,$out # prepare for unaligned store
1353 lvx $outhead,0,$out
1357 lvx $rndkey0,0,$key
1381 lvx $inptail,0,$inp
1391 lvx $rndkey0,0,$key
1405 stvx $dat,0,$out
1410 lvx $inout,0,$out # redundant in aligned case
1412 stvx $inout,0,$out
1416 .long 0
1417 .byte 0,12,0x14,0,0,0,6,0
1418 .long 0
1423 my ($x00,$x10,$x20,$x30,$x40,$x50,$x60,$x70)=map("r$_",(0,8,26..31));
1424 my ($in0, $in1, $in2, $in3, $in4, $in5, $in6, $in7 )=map("v$_",(0..3,10,12..14));
1461 li $x10,0x10
1462 $PUSH r26,`$FRAME+21*16+0*$SIZE_T`($sp)
1463 li $x20,0x20
1465 li $x30,0x30
1467 li $x40,0x40
1469 li $x50,0x50
1471 li $x60,0x60
1473 li $x70,0x70
1480 addi $key,$key,0x20
1489 addi $key,$key,0x20
1494 addi $key_,$key_,0x20
1524 vxor $out0,$ivec,$rndkey0 # ... xored with rndkey[0]
1528 le?lvsl $inpperm,0,$idx
1531 le?vspltisb $tmp,0x0f
1557 addi $key_,$key_,0x20
1580 subfe r0,r0,r0 # borrow?-1:0
1630 addi $inp,$inp,0x80
1653 subfe. r0,r0,r0 # borrow?-1:0
1678 vxor $out0,$ivec,$rndkey0 # ... xored with rndkey[0]
1723 addi $out,$out,0x80
1729 cmpwi $len,-0x60
1733 cmpwi $len,-0x40
1737 cmpwi $len,-0x20
1741 cmpwi $len,0x00
1770 addi $out,$out,0x80
1797 addi $out,$out,0x70
1821 addi $out,$out,0x60
1842 addi $out,$out,0x50
1860 addi $out,$out,0x40
1875 addi $out,$out,0x30
1887 addi $out,$out,0x20
1895 stvx_u $out0,0,$out
1896 addi $out,$out,0x10
1941 $POP r26,`$FRAME+21*16+0*$SIZE_T`($sp)
1949 .long 0
1950 .byte 0,12,0x14,0,0x80,6,6,0
1951 .long 0
1968 my ($rndkey0,$rndkey1,$inout) = map("v$_",(0..2));
1982 lis r0,0xfff0
1984 li r11,0
1987 vspltisb $seven,0x07 # 0x070707..07
1989 le?vspltisb $tmp,0x0f
1993 lvx $tweak,0,$ivp # load [unaligned] iv
1994 lvsl $inpperm,0,$ivp
2000 lvsr $inpperm,0,r11 # prepare for unaligned load
2001 lvx $inout,0,$inp
2005 ${UCMP}i $key2,0 # key2==NULL?
2008 ?lvsl $keyperm,0,$key2 # prepare for unaligned key
2014 lvx $rndkey0,0,$key2
2040 li $ivp,0 # don't chain the tweak
2049 lvx $inptail,0,$inp
2052 ?lvsl $keyperm,0,$key1 # prepare for unaligned key
2058 vslb $eighty7,$seven,$seven # 0x808080..80
2059 vor $eighty7,$eighty7,$seven # 0x878787..87
2060 vspltisb $tmp,1 # 0x010101..01
2061 vsldoi $eighty7,$eighty7,$tmp,15 # 0x870101..01
2073 lvx $rndkey0,0,$key1
2107 le?stvx_u $tmp,0,$out
2108 be?stvx_u $output,0,$out
2115 lvx $inptail,0,$inp
2117 lvx $rndkey0,0,$key1
2145 lvsr $inpperm,0,$len # $inpperm is no longer needed
2164 ${UCMP}i $ivp,0
2174 stvx_u $tweak,0,$ivp
2178 li r3,0
2180 .long 0
2181 .byte 0,12,0x04,0,0x80,6,6,0
2182 .long 0
2191 lis r0,0xfff8
2193 li r11,0
2201 vspltisb $seven,0x07 # 0x070707..07
2203 le?vspltisb $tmp,0x0f
2207 lvx $tweak,0,$ivp # load [unaligned] iv
2208 lvsl $inpperm,0,$ivp
2214 lvsr $inpperm,0,r11 # prepare for unaligned load
2215 lvx $inout,0,$inp
2219 ${UCMP}i $key2,0 # key2==NULL?
2222 ?lvsl $keyperm,0,$key2 # prepare for unaligned key
2228 lvx $rndkey0,0,$key2
2254 li $ivp,0 # don't chain the tweak
2264 lvx $inptail,0,$inp
2267 ?lvsl $keyperm,0,$key1 # prepare for unaligned key
2273 vslb $eighty7,$seven,$seven # 0x808080..80
2274 vor $eighty7,$eighty7,$seven # 0x878787..87
2275 vspltisb $tmp,1 # 0x010101..01
2276 vsldoi $eighty7,$eighty7,$tmp,15 # 0x870101..01
2281 lvx $rndkey0,0,$key1
2318 le?stvx_u $tmp,0,$out
2319 be?stvx_u $output,0,$out
2326 lvx $inptail,0,$inp
2328 lvx $rndkey0,0,$key1
2383 le?stvx_u $tmp,0,$out
2384 be?stvx_u $output,0,$out
2387 lvx $inptail,0,$inp
2389 lvx $rndkey0,0,$key1
2395 lvsr $inpperm,0,$len # $inpperm is no longer needed
2418 ${UCMP}i $ivp,0
2428 stvx_u $tweak,0,$ivp
2432 li r3,0
2434 .long 0
2435 .byte 0,12,0x04,0,0x80,6,6,0
2436 .long 0
2442 my ($x00,$x10,$x20,$x30,$x40,$x50,$x60,$x70)=map("r$_",(0,3,26..31));
2443 $x00=0 if ($flavour =~ /osx/);
2444 my ($in0, $in1, $in2, $in3, $in4, $in5 )=map("v$_",(0..5));
2484 li $x10,0x10
2485 $PUSH r26,`$FRAME+21*16+0*$SIZE_T`($sp)
2486 li $x20,0x20
2488 li $x30,0x30
2490 li $x40,0x40
2492 li $x50,0x50
2494 li $x60,0x60
2496 li $x70,0x70
2500 vsldoi $eighty7,$tmp,$eighty7,1 # 0x010101..87
2506 lxvw4x 0, $x40, r6 # load XOR contents
2508 li $x70,0x70
2514 addi $key1,$key1,0x20
2523 addi $key1,$key1,0x20
2528 addi $key_,$key_,0x20
2552 # Switch to use the following codes with 0x010101..87 to generate tweak.
2553 # eighty7 = 0x010101..87
2557 # xxlor vsx, 0, 0
2567 xxlor 32+$in1, 0, 0
2577 xxlor 32+$in2, 0, 0
2588 xxlor 32+$in3, 0, 0
2599 xxlor 32+$in4, 0, 0
2603 subi $len,$len,0x60
2610 xxlor 32+$in5, 0, 0
2614 addi $inp,$inp,0x60
2621 xxlor 32+$in0, 0, 0
2637 addi $key_,$key_,0x20
2648 xxlor 32+$eighty7, 1, 1 # 0x010101..87
2662 subfe. r0,r0,r0 # borrow?-1:0
2666 xxlor 32+$in1, 0, 0
2683 xxlor 32+$in2, 0, 0
2705 xxlor 32+$in3, 0, 0
2722 xxlor 32+$in4, 0, 0
2739 xxlor 32+$in5, 0, 0
2763 xxlor 32+$in0, 0, 0
2770 addi $inp,$inp,0x60
2793 addi $out,$out,0x60
2798 xxlor 32+$eighty7, 2, 2 # 0x010101..87
2800 addic. $len,$len,0x60
2802 cmpwi $len,0x20
2806 cmpwi $len,0x40
2832 addi $out,$out,0x50
2856 addi $out,$out,0x40
2878 addi $out,$out,0x30
2898 addi $out,$out,0x20
2909 addi $key_,$key_,0x20
2916 cmpwi $taillen,0
2922 lvsr $inpperm,0,$taillen
2925 lvx_u $in0,0,$inp
2946 addi $out,$out,0x10
2952 cmpwi $taillen,0
2957 lvx_u $in0,0,$inp
2958 lvsr $inpperm,0,$taillen # $in5 is no more
2977 li $taillen,0
2983 ${UCMP}i $ivp,0
2988 stvx_u $tweak,0,$ivp
3034 $POP r26,`$FRAME+21*16+0*$SIZE_T`($sp)
3042 .long 0
3043 .byte 0,12,0x04,1,0x80,6,6,0
3044 .long 0
3054 addi $key_,$key_,0x20
3065 cmpwi $taillen,0
3089 lvx_u $in0,0,$inp
3127 .long 0
3128 .byte 0,12,0x14,0,0,0,0,0
3161 li $x10,0x10
3162 $PUSH r26,`$FRAME+21*16+0*$SIZE_T`($sp)
3163 li $x20,0x20
3165 li $x30,0x30
3167 li $x40,0x40
3169 li $x50,0x50
3171 li $x60,0x60
3173 li $x70,0x70
3177 vsldoi $eighty7,$tmp,$eighty7,1 # 0x010101..87
3183 lxvw4x 0, $x40, r6 # load XOR contents
3185 li $x70,0x70
3191 addi $key1,$key1,0x20
3200 addi $key1,$key1,0x20
3205 addi $key_,$key_,0x20
3236 xxlor 32+$in1, 0, 0
3246 xxlor 32+$in2, 0, 0
3257 xxlor 32+$in3, 0, 0
3268 xxlor 32+$in4, 0, 0
3272 subi $len,$len,0x60
3279 xxlor 32+$in5, 0, 0
3283 addi $inp,$inp,0x60
3290 xxlor 32+$in0, 0, 0
3306 addi $key_,$key_,0x20
3317 xxlor 32+$eighty7, 1, 1 # 0x010101..87
3331 subfe. r0,r0,r0 # borrow?-1:0
3335 xxlor 32+$in1, 0, 0
3352 xxlor 32+$in2, 0, 0
3374 xxlor 32+$in3, 0, 0
3391 xxlor 32+$in4, 0, 0
3408 xxlor 32+$in5, 0, 0
3432 xxlor 32+$in0, 0, 0
3438 addi $inp,$inp,0x60
3460 addi $out,$out,0x60
3465 xxlor 32+$eighty7, 2, 2 # 0x010101..87
3467 addic. $len,$len,0x60
3469 cmpwi $len,0x20
3473 cmpwi $len,0x40
3500 addi $out,$out,0x50
3525 addi $out,$out,0x40
3548 addi $out,$out,0x30
3569 addi $out,$out,0x20
3580 addi $key_,$key_,0x20
3590 cmpwi $taillen,0
3596 lvx_u $in0,0,$inp
3617 addi $out,$out,0x10
3624 cmpwi $taillen,0
3627 lvx_u $in0,0,$inp
3633 addi $key_,$key_,0x20
3642 cmpwi $taillen,0
3645 lvx_u $in0,0,$inp
3648 lvsr $inpperm,0,$taillen # $in5 is no more
3666 le?stvx_u $out0,0,$out
3667 be?stvx_u $tmp,0,$out
3682 li $taillen,0
3688 ${UCMP}i $ivp,0
3693 stvx_u $tweak,0,$ivp
3739 $POP r26,`$FRAME+21*16+0*$SIZE_T`($sp)
3747 .long 0
3748 .byte 0,12,0x04,1,0x80,6,6,0
3749 .long 0
3759 addi $key_,$key_,0x20
3777 cmpwi $taillen,0
3794 lvx_u $in0,0,$inp
3832 .long 0
3833 .byte 0,12,0x14,0,0,0,0,0
3849 my $l = /^0/?oct:int;
3850 push @bytes,($l>>24)&0xff,($l>>16)&0xff,($l>>8)&0xff,$l&0xff;
3853 @bytes = map(/^0/?oct:int,split(/,\s*/,$2));
3859 /\?inv/ && do { @bytes=map($_^0xf,@bytes); last; };
3865 print ".byte\t",join(',',map (sprintf("0x%02x",$_),@bytes)),"\n";
3868 $consts=0 if (m/Lconsts:/o); # end of table
3877 s/\?(vperm\s+v[0-9]+,\s*)(v[0-9]+,\s*)(v[0-9]+,\s*)(v[0-9]+)/$1$3$2$4/o or
3878 s/\?(vsldoi\s+v[0-9]+,\s*)(v[0-9]+,)\s*(v[0-9]+,\s*)([0-9]+)/$1$3$2 16-$4/o or
3879 s/\?(vspltw\s+v[0-9]+,\s*)(v[0-9]+,)\s*([0-9])/$1$2 3-$3/o;