|
295 | 295 | vpshufb t1, t0, t2; \ |
296 | 296 | vpxor t2, x7, x7; |
297 | 297 |
|
298 | | -#ifdef CONFIG_AS_GFNI |
299 | 298 | #define aria_sbox_8way_gfni(x0, x1, x2, x3, \ |
300 | 299 | x4, x5, x6, x7, \ |
301 | 300 | t0, t1, t2, t3, \ |
|
318 | 317 | vgf2p8affineinvqb $0, t2, x3, x3; \ |
319 | 318 | vgf2p8affineinvqb $0, t2, x7, x7 |
320 | 319 |
|
321 | | -#endif /* CONFIG_AS_GFNI */ |
322 | | - |
323 | 320 | #define aria_sbox_8way(x0, x1, x2, x3, \ |
324 | 321 | x4, x5, x6, x7, \ |
325 | 322 | t0, t1, t2, t3, \ |
|
561 | 558 | y4, y5, y6, y7, \ |
562 | 559 | mem_tmp, 8); |
563 | 560 |
|
564 | | -#ifdef CONFIG_AS_GFNI |
565 | 561 | #define aria_fe_gfni(x0, x1, x2, x3, \ |
566 | 562 | x4, x5, x6, x7, \ |
567 | 563 | y0, y1, y2, y3, \ |
|
719 | 715 | y4, y5, y6, y7, \ |
720 | 716 | mem_tmp, 8); |
721 | 717 |
|
722 | | -#endif /* CONFIG_AS_GFNI */ |
723 | | - |
724 | 718 | /* NB: section is mergeable, all elements must be aligned 16-byte blocks */ |
725 | 719 | .section .rodata.cst16, "aM", @progbits, 16 |
726 | 720 | .align 16 |
|
772 | 766 | .Ltf_hi__x2__and__fwd_aff: |
773 | 767 | .octa 0x3F893781E95FE1576CDA64D2BA0CB204 |
774 | 768 |
|
775 | | -#ifdef CONFIG_AS_GFNI |
776 | 769 | /* AES affine: */ |
777 | 770 | #define tf_aff_const BV8(1, 1, 0, 0, 0, 1, 1, 0) |
778 | 771 | .Ltf_aff_bitmatrix: |
|
871 | 864 | BV8(0, 0, 0, 0, 0, 1, 0, 0), |
872 | 865 | BV8(0, 0, 0, 0, 0, 0, 1, 0), |
873 | 866 | BV8(0, 0, 0, 0, 0, 0, 0, 1)) |
874 | | -#endif /* CONFIG_AS_GFNI */ |
875 | 867 |
|
876 | 868 | /* 4-bit mask */ |
877 | 869 | .section .rodata.cst4.L0f0f0f0f, "aM", @progbits, 4 |
@@ -1140,7 +1132,6 @@ SYM_TYPED_FUNC_START(aria_aesni_avx_ctr_crypt_16way) |
1140 | 1132 | RET; |
1141 | 1133 | SYM_FUNC_END(aria_aesni_avx_ctr_crypt_16way) |
1142 | 1134 |
|
1143 | | -#ifdef CONFIG_AS_GFNI |
1144 | 1135 | SYM_FUNC_START_LOCAL(__aria_aesni_avx_gfni_crypt_16way) |
1145 | 1136 | /* input: |
1146 | 1137 | * %r9: rk |
@@ -1359,4 +1350,3 @@ SYM_TYPED_FUNC_START(aria_aesni_avx_gfni_ctr_crypt_16way) |
1359 | 1350 | FRAME_END |
1360 | 1351 | RET; |
1361 | 1352 | SYM_FUNC_END(aria_aesni_avx_gfni_ctr_crypt_16way) |
1362 | | -#endif /* CONFIG_AS_GFNI */ |
0 commit comments