1 #include <machine/asm.h>
7 .type _bsaes_encrypt8,@function
17 .byte 102,68,15,56,0,255
31 _bsaes_encrypt8_bitslice:
125 .byte 102,68,15,56,0,255
127 .byte 102,15,56,0,199
129 .byte 102,15,56,0,207
131 .byte 102,15,56,0,215
133 .byte 102,15,56,0,223
135 .byte 102,15,56,0,231
137 .byte 102,15,56,0,239
139 .byte 102,15,56,0,247
328 pshufd $147,%xmm15,%xmm7
329 pshufd $147,%xmm0,%xmm8
331 pshufd $147,%xmm3,%xmm9
333 pshufd $147,%xmm5,%xmm10
335 pshufd $147,%xmm2,%xmm11
337 pshufd $147,%xmm6,%xmm12
339 pshufd $147,%xmm1,%xmm13
341 pshufd $147,%xmm4,%xmm14
348 pshufd $78,%xmm15,%xmm15
350 pshufd $78,%xmm0,%xmm0
356 pshufd $78,%xmm2,%xmm7
358 pshufd $78,%xmm6,%xmm8
360 pshufd $78,%xmm5,%xmm2
362 pshufd $78,%xmm4,%xmm6
364 pshufd $78,%xmm1,%xmm5
366 pshufd $78,%xmm3,%xmm1
374 movdqa 48(%r11),%xmm7
376 movdqa 64(%r11),%xmm7
381 movdqa 16(%r11),%xmm8
410 movdqa 32(%r11),%xmm7
477 .size _bsaes_encrypt8,.-_bsaes_encrypt8
479 .type _bsaes_decrypt8,@function
482 leaq .LBS0(%rip),%r11
486 movdqa -48(%r11),%xmm7
489 .byte 102,68,15,56,0,255
491 .byte 102,15,56,0,199
493 .byte 102,15,56,0,207
495 .byte 102,15,56,0,215
497 .byte 102,15,56,0,223
499 .byte 102,15,56,0,231
501 .byte 102,15,56,0,239
502 .byte 102,15,56,0,247
504 movdqa 16(%r11),%xmm8
533 movdqa 32(%r11),%xmm7
596 .byte 102,68,15,56,0,255
598 .byte 102,15,56,0,199
600 .byte 102,15,56,0,207
602 .byte 102,15,56,0,215
604 .byte 102,15,56,0,223
606 .byte 102,15,56,0,231
608 .byte 102,15,56,0,239
610 .byte 102,15,56,0,247
800 pshufd $78,%xmm15,%xmm7
801 pshufd $78,%xmm2,%xmm13
803 pshufd $78,%xmm4,%xmm14
805 pshufd $78,%xmm0,%xmm8
807 pshufd $78,%xmm5,%xmm9
809 pshufd $78,%xmm3,%xmm10
813 pshufd $78,%xmm1,%xmm11
817 pshufd $78,%xmm6,%xmm12
831 pshufd $147,%xmm15,%xmm7
832 pshufd $147,%xmm0,%xmm8
834 pshufd $147,%xmm5,%xmm9
836 pshufd $147,%xmm3,%xmm10
838 pshufd $147,%xmm1,%xmm11
840 pshufd $147,%xmm6,%xmm12
842 pshufd $147,%xmm2,%xmm13
844 pshufd $147,%xmm4,%xmm14
851 pshufd $78,%xmm15,%xmm15
853 pshufd $78,%xmm0,%xmm0
859 pshufd $78,%xmm1,%xmm7
861 pshufd $78,%xmm6,%xmm8
863 pshufd $78,%xmm3,%xmm1
865 pshufd $78,%xmm4,%xmm6
867 pshufd $78,%xmm2,%xmm3
869 pshufd $78,%xmm5,%xmm2
880 movdqa -16(%r11),%xmm7
882 movdqa -32(%r11),%xmm7
887 movdqa 16(%r11),%xmm8
916 movdqa 32(%r11),%xmm7
983 .size _bsaes_decrypt8,.-_bsaes_decrypt8
984 .type _bsaes_key_convert,@function
987 leaq .Lmasks(%rip),%r11
991 movdqa 16(%r11),%xmm1
992 movdqa 32(%r11),%xmm2
993 movdqa 48(%r11),%xmm3
994 movdqa 64(%r11),%xmm4
1004 .byte 102,15,56,0,244
1021 pcmpeqb %xmm2,%xmm10
1024 pcmpeqb %xmm3,%xmm11
1034 movdqa %xmm8,0(%rax)
1035 pcmpeqb %xmm0,%xmm12
1037 movdqa %xmm9,16(%rax)
1038 pcmpeqb %xmm1,%xmm13
1044 movdqa %xmm10,32(%rax)
1045 pcmpeqb %xmm2,%xmm14
1047 movdqa %xmm11,48(%rax)
1048 pcmpeqb %xmm3,%xmm15
1054 movdqa %xmm12,64(%rax)
1055 movdqa %xmm13,80(%rax)
1056 movdqa %xmm14,96(%rax)
1057 movdqa %xmm15,112(%rax)
1062 movdqa 80(%r11),%xmm7
1065 .size _bsaes_key_convert,.-_bsaes_key_convert
1067 .globl bsaes_cbc_encrypt
1068 .type bsaes_cbc_encrypt,@function
1072 jne asm_AES_cbc_encrypt
1074 jb asm_AES_cbc_encrypt
1102 call _bsaes_key_convert
1107 movdqu (%rbx),%xmm14
1110 movdqu 0(%r12),%xmm15
1111 movdqu 16(%r12),%xmm0
1112 movdqu 32(%r12),%xmm1
1113 movdqu 48(%r12),%xmm2
1114 movdqu 64(%r12),%xmm3
1115 movdqu 80(%r12),%xmm4
1117 movdqu 96(%r12),%xmm5
1119 movdqu 112(%r12),%xmm6
1120 movdqa %xmm14,32(%rbp)
1122 call _bsaes_decrypt8
1124 pxor 32(%rbp),%xmm15
1125 movdqu 0(%r12),%xmm7
1126 movdqu 16(%r12),%xmm8
1128 movdqu 32(%r12),%xmm9
1130 movdqu 48(%r12),%xmm10
1132 movdqu 64(%r12),%xmm11
1134 movdqu 80(%r12),%xmm12
1136 movdqu 96(%r12),%xmm13
1138 movdqu 112(%r12),%xmm14
1140 movdqu %xmm15,0(%r13)
1142 movdqu %xmm0,16(%r13)
1143 movdqu %xmm5,32(%r13)
1144 movdqu %xmm3,48(%r13)
1145 movdqu %xmm1,64(%r13)
1146 movdqu %xmm6,80(%r13)
1147 movdqu %xmm2,96(%r13)
1148 movdqu %xmm4,112(%r13)
1156 movdqu 0(%r12),%xmm15
1161 movdqu 16(%r12),%xmm0
1163 movdqu 32(%r12),%xmm1
1166 movdqu 48(%r12),%xmm2
1168 movdqu 64(%r12),%xmm3
1171 movdqu 80(%r12),%xmm4
1173 movdqu 96(%r12),%xmm5
1174 movdqa %xmm14,32(%rbp)
1175 call _bsaes_decrypt8
1176 pxor 32(%rbp),%xmm15
1177 movdqu 0(%r12),%xmm7
1178 movdqu 16(%r12),%xmm8
1180 movdqu 32(%r12),%xmm9
1182 movdqu 48(%r12),%xmm10
1184 movdqu 64(%r12),%xmm11
1186 movdqu 80(%r12),%xmm12
1188 movdqu 96(%r12),%xmm14
1190 movdqu %xmm15,0(%r13)
1191 movdqu %xmm0,16(%r13)
1192 movdqu %xmm5,32(%r13)
1193 movdqu %xmm3,48(%r13)
1194 movdqu %xmm1,64(%r13)
1195 movdqu %xmm6,80(%r13)
1196 movdqu %xmm2,96(%r13)
1200 movdqa %xmm14,32(%rbp)
1201 call _bsaes_decrypt8
1202 pxor 32(%rbp),%xmm15
1203 movdqu 0(%r12),%xmm7
1204 movdqu 16(%r12),%xmm8
1206 movdqu 32(%r12),%xmm9
1208 movdqu 48(%r12),%xmm10
1210 movdqu 64(%r12),%xmm11
1212 movdqu 80(%r12),%xmm14
1214 movdqu %xmm15,0(%r13)
1215 movdqu %xmm0,16(%r13)
1216 movdqu %xmm5,32(%r13)
1217 movdqu %xmm3,48(%r13)
1218 movdqu %xmm1,64(%r13)
1219 movdqu %xmm6,80(%r13)
1223 movdqa %xmm14,32(%rbp)
1224 call _bsaes_decrypt8
1225 pxor 32(%rbp),%xmm15
1226 movdqu 0(%r12),%xmm7
1227 movdqu 16(%r12),%xmm8
1229 movdqu 32(%r12),%xmm9
1231 movdqu 48(%r12),%xmm10
1233 movdqu 64(%r12),%xmm14
1235 movdqu %xmm15,0(%r13)
1236 movdqu %xmm0,16(%r13)
1237 movdqu %xmm5,32(%r13)
1238 movdqu %xmm3,48(%r13)
1239 movdqu %xmm1,64(%r13)
1243 movdqa %xmm14,32(%rbp)
1244 call _bsaes_decrypt8
1245 pxor 32(%rbp),%xmm15
1246 movdqu 0(%r12),%xmm7
1247 movdqu 16(%r12),%xmm8
1249 movdqu 32(%r12),%xmm9
1251 movdqu 48(%r12),%xmm14
1253 movdqu %xmm15,0(%r13)
1254 movdqu %xmm0,16(%r13)
1255 movdqu %xmm5,32(%r13)
1256 movdqu %xmm3,48(%r13)
1260 movdqa %xmm14,32(%rbp)
1261 call _bsaes_decrypt8
1262 pxor 32(%rbp),%xmm15
1263 movdqu 0(%r12),%xmm7
1264 movdqu 16(%r12),%xmm8
1266 movdqu 32(%r12),%xmm14
1268 movdqu %xmm15,0(%r13)
1269 movdqu %xmm0,16(%r13)
1270 movdqu %xmm5,32(%r13)
1274 movdqa %xmm14,32(%rbp)
1275 call _bsaes_decrypt8
1276 pxor 32(%rbp),%xmm15
1277 movdqu 0(%r12),%xmm7
1278 movdqu 16(%r12),%xmm14
1280 movdqu %xmm15,0(%r13)
1281 movdqu %xmm0,16(%r13)
1288 call asm_AES_decrypt
1289 pxor 32(%rbp),%xmm14
1290 movdqu %xmm14,(%r13)
1291 movdqa %xmm15,%xmm14
1294 movdqu %xmm14,(%rbx)
1298 movdqa %xmm0,0(%rax)
1299 movdqa %xmm0,16(%rax)
1315 .size bsaes_cbc_encrypt,.-bsaes_cbc_encrypt
1317 .globl bsaes_ctr32_encrypt_blocks
1318 .type bsaes_ctr32_encrypt_blocks,@function
1320 bsaes_ctr32_encrypt_blocks:
1337 movdqa %xmm0,32(%rbp)
1349 call _bsaes_key_convert
1354 leaq .LADD1(%rip),%r11
1355 movdqa 32(%rbp),%xmm15
1356 movdqa -32(%r11),%xmm7
1357 .byte 102,68,15,56,0,199
1358 .byte 102,68,15,56,0,255
1363 movdqa %xmm15,32(%rbp)
1368 paddd 16(%r11),%xmm1
1370 paddd 32(%r11),%xmm2
1372 paddd 48(%r11),%xmm3
1374 paddd 64(%r11),%xmm4
1376 paddd 80(%r11),%xmm5
1377 paddd 96(%r11),%xmm6
1383 movdqa -16(%r11),%xmm7
1386 .byte 102,68,15,56,0,255
1388 .byte 102,15,56,0,199
1390 .byte 102,15,56,0,207
1392 .byte 102,15,56,0,215
1394 .byte 102,15,56,0,223
1396 .byte 102,15,56,0,231
1398 .byte 102,15,56,0,239
1399 leaq .LBS0(%rip),%r11
1400 .byte 102,15,56,0,247
1403 call _bsaes_encrypt8_bitslice
1406 jc .Lctr_enc_loop_done
1408 movdqu 0(%r12),%xmm7
1409 movdqu 16(%r12),%xmm8
1410 movdqu 32(%r12),%xmm9
1411 movdqu 48(%r12),%xmm10
1412 movdqu 64(%r12),%xmm11
1413 movdqu 80(%r12),%xmm12
1414 movdqu 96(%r12),%xmm13
1415 movdqu 112(%r12),%xmm14
1418 movdqa 32(%rbp),%xmm15
1420 movdqu %xmm7,0(%r13)
1422 movdqu %xmm0,16(%r13)
1424 movdqu %xmm3,32(%r13)
1426 movdqu %xmm5,48(%r13)
1428 movdqu %xmm2,64(%r13)
1430 movdqu %xmm6,80(%r13)
1432 movdqu %xmm1,96(%r13)
1433 leaq .LADD1(%rip),%r11
1434 movdqu %xmm4,112(%r13)
1436 paddd 112(%r11),%xmm15
1441 .Lctr_enc_loop_done:
1443 movdqu 0(%r12),%xmm7
1445 movdqu %xmm15,0(%r13)
1448 movdqu 16(%r12),%xmm8
1450 movdqu %xmm0,16(%r13)
1452 movdqu 32(%r12),%xmm9
1454 movdqu %xmm3,32(%r13)
1457 movdqu 48(%r12),%xmm10
1459 movdqu %xmm5,48(%r13)
1461 movdqu 64(%r12),%xmm11
1463 movdqu %xmm2,64(%r13)
1466 movdqu 80(%r12),%xmm12
1468 movdqu %xmm6,80(%r13)
1470 movdqu 96(%r12),%xmm13
1472 movdqu %xmm1,96(%r13)
1480 call asm_AES_encrypt
1498 movdqa %xmm0,0(%rax)
1499 movdqa %xmm0,16(%rax)
1515 .size bsaes_ctr32_encrypt_blocks,.-bsaes_ctr32_encrypt_blocks
1516 .globl bsaes_xts_encrypt
1517 .type bsaes_xts_encrypt,@function
1538 call asm_AES_encrypt
1551 call _bsaes_key_convert
1557 movdqa 32(%rbp),%xmm6
1560 movdqa .Lxts_magic(%rip),%xmm12
1561 pcmpgtd %xmm6,%xmm14
1569 pshufd $19,%xmm14,%xmm13
1572 movdqa %xmm6,0(%rsp)
1575 pcmpgtd %xmm6,%xmm14
1577 pshufd $19,%xmm14,%xmm13
1580 movdqa %xmm6,16(%rsp)
1583 pcmpgtd %xmm6,%xmm14
1585 movdqu 0(%r12),%xmm7
1586 pshufd $19,%xmm14,%xmm13
1589 movdqa %xmm6,32(%rsp)
1592 pcmpgtd %xmm6,%xmm14
1594 movdqu 16(%r12),%xmm8
1596 pshufd $19,%xmm14,%xmm13
1599 movdqa %xmm6,48(%rsp)
1602 pcmpgtd %xmm6,%xmm14
1604 movdqu 32(%r12),%xmm9
1606 pshufd $19,%xmm14,%xmm13
1609 movdqa %xmm6,64(%rsp)
1612 pcmpgtd %xmm6,%xmm14
1614 movdqu 48(%r12),%xmm10
1616 pshufd $19,%xmm14,%xmm13
1619 movdqa %xmm6,80(%rsp)
1622 pcmpgtd %xmm6,%xmm14
1624 movdqu 64(%r12),%xmm11
1626 pshufd $19,%xmm14,%xmm13
1629 movdqa %xmm6,96(%rsp)
1632 pcmpgtd %xmm6,%xmm14
1634 movdqu 80(%r12),%xmm12
1636 movdqu 96(%r12),%xmm13
1638 movdqu 112(%r12),%xmm14
1640 movdqa %xmm6,112(%rsp)
1646 call _bsaes_encrypt8
1650 movdqu %xmm15,0(%r13)
1652 movdqu %xmm0,16(%r13)
1654 movdqu %xmm3,32(%r13)
1656 movdqu %xmm5,48(%r13)
1658 movdqu %xmm2,64(%r13)
1660 movdqu %xmm6,80(%r13)
1661 pxor 112(%rsp),%xmm4
1662 movdqu %xmm1,96(%r13)
1663 movdqu %xmm4,112(%r13)
1666 movdqa 112(%rsp),%xmm6
1668 movdqa .Lxts_magic(%rip),%xmm12
1669 pcmpgtd %xmm6,%xmm14
1670 pshufd $19,%xmm14,%xmm13
1674 pcmpgtd %xmm6,%xmm14
1683 pshufd $19,%xmm14,%xmm13
1686 movdqa %xmm6,0(%rsp)
1689 pcmpgtd %xmm6,%xmm14
1691 pshufd $19,%xmm14,%xmm13
1694 movdqa %xmm6,16(%rsp)
1697 pcmpgtd %xmm6,%xmm14
1699 movdqu 0(%r12),%xmm7
1702 pshufd $19,%xmm14,%xmm13
1705 movdqa %xmm6,32(%rsp)
1708 pcmpgtd %xmm6,%xmm14
1710 movdqu 16(%r12),%xmm8
1714 pshufd $19,%xmm14,%xmm13
1717 movdqa %xmm6,48(%rsp)
1720 pcmpgtd %xmm6,%xmm14
1722 movdqu 32(%r12),%xmm9
1726 pshufd $19,%xmm14,%xmm13
1729 movdqa %xmm6,64(%rsp)
1732 pcmpgtd %xmm6,%xmm14
1734 movdqu 48(%r12),%xmm10
1738 pshufd $19,%xmm14,%xmm13
1741 movdqa %xmm6,80(%rsp)
1744 pcmpgtd %xmm6,%xmm14
1746 movdqu 64(%r12),%xmm11
1750 pshufd $19,%xmm14,%xmm13
1753 movdqa %xmm6,96(%rsp)
1756 pcmpgtd %xmm6,%xmm14
1758 movdqu 80(%r12),%xmm12
1762 movdqu 96(%r12),%xmm13
1764 movdqa %xmm6,112(%rsp)
1770 call _bsaes_encrypt8
1774 movdqu %xmm15,0(%r13)
1776 movdqu %xmm0,16(%r13)
1778 movdqu %xmm3,32(%r13)
1780 movdqu %xmm5,48(%r13)
1782 movdqu %xmm2,64(%r13)
1784 movdqu %xmm6,80(%r13)
1785 movdqu %xmm1,96(%r13)
1788 movdqa 112(%rsp),%xmm6
1798 call _bsaes_encrypt8
1802 movdqu %xmm15,0(%r13)
1804 movdqu %xmm0,16(%r13)
1806 movdqu %xmm3,32(%r13)
1808 movdqu %xmm5,48(%r13)
1810 movdqu %xmm2,64(%r13)
1811 movdqu %xmm6,80(%r13)
1814 movdqa 96(%rsp),%xmm6
1824 call _bsaes_encrypt8
1828 movdqu %xmm15,0(%r13)
1830 movdqu %xmm0,16(%r13)
1832 movdqu %xmm3,32(%r13)
1834 movdqu %xmm5,48(%r13)
1835 movdqu %xmm2,64(%r13)
1838 movdqa 80(%rsp),%xmm6
1848 call _bsaes_encrypt8
1852 movdqu %xmm15,0(%r13)
1854 movdqu %xmm0,16(%r13)
1856 movdqu %xmm3,32(%r13)
1857 movdqu %xmm5,48(%r13)
1860 movdqa 64(%rsp),%xmm6
1870 call _bsaes_encrypt8
1874 movdqu %xmm15,0(%r13)
1876 movdqu %xmm0,16(%r13)
1877 movdqu %xmm3,32(%r13)
1880 movdqa 48(%rsp),%xmm6
1890 call _bsaes_encrypt8
1894 movdqu %xmm15,0(%r13)
1895 movdqu %xmm0,16(%r13)
1898 movdqa 32(%rsp),%xmm6
1904 movdqa %xmm7,32(%rbp)
1908 call asm_AES_encrypt
1909 pxor 32(%rbp),%xmm15
1915 movdqu %xmm15,0(%r13)
1918 movdqa 16(%rsp),%xmm6
1927 movzbl -16(%rdx),%ecx
1935 movdqu -16(%r13),%xmm15
1939 movdqa %xmm15,32(%rbp)
1941 call asm_AES_encrypt
1943 movdqu %xmm6,-16(%r13)
1949 movdqa %xmm0,0(%rax)
1950 movdqa %xmm0,16(%rax)
1966 .size bsaes_xts_encrypt,.-bsaes_xts_encrypt
1968 .globl bsaes_xts_decrypt
1969 .type bsaes_xts_decrypt,@function
1990 call asm_AES_encrypt
2003 call _bsaes_key_convert
2016 movdqa 32(%rbp),%xmm6
2019 movdqa .Lxts_magic(%rip),%xmm12
2020 pcmpgtd %xmm6,%xmm14
2028 pshufd $19,%xmm14,%xmm13
2031 movdqa %xmm6,0(%rsp)
2034 pcmpgtd %xmm6,%xmm14
2036 pshufd $19,%xmm14,%xmm13
2039 movdqa %xmm6,16(%rsp)
2042 pcmpgtd %xmm6,%xmm14
2044 movdqu 0(%r12),%xmm7
2045 pshufd $19,%xmm14,%xmm13
2048 movdqa %xmm6,32(%rsp)
2051 pcmpgtd %xmm6,%xmm14
2053 movdqu 16(%r12),%xmm8
2055 pshufd $19,%xmm14,%xmm13
2058 movdqa %xmm6,48(%rsp)
2061 pcmpgtd %xmm6,%xmm14
2063 movdqu 32(%r12),%xmm9
2065 pshufd $19,%xmm14,%xmm13
2068 movdqa %xmm6,64(%rsp)
2071 pcmpgtd %xmm6,%xmm14
2073 movdqu 48(%r12),%xmm10
2075 pshufd $19,%xmm14,%xmm13
2078 movdqa %xmm6,80(%rsp)
2081 pcmpgtd %xmm6,%xmm14
2083 movdqu 64(%r12),%xmm11
2085 pshufd $19,%xmm14,%xmm13
2088 movdqa %xmm6,96(%rsp)
2091 pcmpgtd %xmm6,%xmm14
2093 movdqu 80(%r12),%xmm12
2095 movdqu 96(%r12),%xmm13
2097 movdqu 112(%r12),%xmm14
2099 movdqa %xmm6,112(%rsp)
2105 call _bsaes_decrypt8
2109 movdqu %xmm15,0(%r13)
2111 movdqu %xmm0,16(%r13)
2113 movdqu %xmm5,32(%r13)
2115 movdqu %xmm3,48(%r13)
2117 movdqu %xmm1,64(%r13)
2119 movdqu %xmm6,80(%r13)
2120 pxor 112(%rsp),%xmm4
2121 movdqu %xmm2,96(%r13)
2122 movdqu %xmm4,112(%r13)
2125 movdqa 112(%rsp),%xmm6
2127 movdqa .Lxts_magic(%rip),%xmm12
2128 pcmpgtd %xmm6,%xmm14
2129 pshufd $19,%xmm14,%xmm13
2133 pcmpgtd %xmm6,%xmm14
2142 pshufd $19,%xmm14,%xmm13
2145 movdqa %xmm6,0(%rsp)
2148 pcmpgtd %xmm6,%xmm14
2150 pshufd $19,%xmm14,%xmm13
2153 movdqa %xmm6,16(%rsp)
2156 pcmpgtd %xmm6,%xmm14
2158 movdqu 0(%r12),%xmm7
2161 pshufd $19,%xmm14,%xmm13
2164 movdqa %xmm6,32(%rsp)
2167 pcmpgtd %xmm6,%xmm14
2169 movdqu 16(%r12),%xmm8
2173 pshufd $19,%xmm14,%xmm13
2176 movdqa %xmm6,48(%rsp)
2179 pcmpgtd %xmm6,%xmm14
2181 movdqu 32(%r12),%xmm9
2185 pshufd $19,%xmm14,%xmm13
2188 movdqa %xmm6,64(%rsp)
2191 pcmpgtd %xmm6,%xmm14
2193 movdqu 48(%r12),%xmm10
2197 pshufd $19,%xmm14,%xmm13
2200 movdqa %xmm6,80(%rsp)
2203 pcmpgtd %xmm6,%xmm14
2205 movdqu 64(%r12),%xmm11
2209 pshufd $19,%xmm14,%xmm13
2212 movdqa %xmm6,96(%rsp)
2215 pcmpgtd %xmm6,%xmm14
2217 movdqu 80(%r12),%xmm12
2221 movdqu 96(%r12),%xmm13
2223 movdqa %xmm6,112(%rsp)
2229 call _bsaes_decrypt8
2233 movdqu %xmm15,0(%r13)
2235 movdqu %xmm0,16(%r13)
2237 movdqu %xmm5,32(%r13)
2239 movdqu %xmm3,48(%r13)
2241 movdqu %xmm1,64(%r13)
2243 movdqu %xmm6,80(%r13)
2244 movdqu %xmm2,96(%r13)
2247 movdqa 112(%rsp),%xmm6
2257 call _bsaes_decrypt8
2261 movdqu %xmm15,0(%r13)
2263 movdqu %xmm0,16(%r13)
2265 movdqu %xmm5,32(%r13)
2267 movdqu %xmm3,48(%r13)
2269 movdqu %xmm1,64(%r13)
2270 movdqu %xmm6,80(%r13)
2273 movdqa 96(%rsp),%xmm6
2283 call _bsaes_decrypt8
2287 movdqu %xmm15,0(%r13)
2289 movdqu %xmm0,16(%r13)
2291 movdqu %xmm5,32(%r13)
2293 movdqu %xmm3,48(%r13)
2294 movdqu %xmm1,64(%r13)
2297 movdqa 80(%rsp),%xmm6
2307 call _bsaes_decrypt8
2311 movdqu %xmm15,0(%r13)
2313 movdqu %xmm0,16(%r13)
2315 movdqu %xmm5,32(%r13)
2316 movdqu %xmm3,48(%r13)
2319 movdqa 64(%rsp),%xmm6
2329 call _bsaes_decrypt8
2333 movdqu %xmm15,0(%r13)
2335 movdqu %xmm0,16(%r13)
2336 movdqu %xmm5,32(%r13)
2339 movdqa 48(%rsp),%xmm6
2349 call _bsaes_decrypt8
2353 movdqu %xmm15,0(%r13)
2354 movdqu %xmm0,16(%r13)
2357 movdqa 32(%rsp),%xmm6
2363 movdqa %xmm7,32(%rbp)
2367 call asm_AES_decrypt
2368 pxor 32(%rbp),%xmm15
2374 movdqu %xmm15,0(%r13)
2377 movdqa 16(%rsp),%xmm6
2384 movdqa .Lxts_magic(%rip),%xmm12
2385 pcmpgtd %xmm6,%xmm14
2386 pshufd $19,%xmm14,%xmm13
2390 movdqu (%r12),%xmm15
2396 movdqa %xmm15,32(%rbp)
2398 call asm_AES_decrypt
2404 movzbl 16(%r12),%eax
2413 movdqu (%r13),%xmm15
2417 movdqa %xmm15,32(%rbp)
2419 call asm_AES_decrypt
2427 movdqa %xmm0,0(%rax)
2428 movdqa %xmm0,16(%rax)
2444 .size bsaes_xts_decrypt,.-bsaes_xts_decrypt
2445 .type _bsaes_const,@object
2449 .quad 0x0a0e0206070b0f03, 0x0004080c0d010509
2451 .quad 0x01040b0e0205080f, 0x0306090c00070a0d
2453 .quad 0x0504070602010003, 0x0f0e0d0c080b0a09
2455 .quad 0x5555555555555555, 0x5555555555555555
2457 .quad 0x3333333333333333, 0x3333333333333333
2459 .quad 0x0f0f0f0f0f0f0f0f, 0x0f0f0f0f0f0f0f0f
2461 .quad 0x0504070600030201, 0x0f0e0d0c0a09080b
2463 .quad 0x0304090e00050a0f, 0x01060b0c0207080d
2465 .quad 0x0a0e02060f03070b, 0x0004080c05090d01
2467 .quad 0x0706050403020100, 0x0c0d0e0f0b0a0908
2469 .quad 0x0a0d02060c03070b, 0x0004080f05090e01
2471 .quad 0x0000000000000000, 0x0000000100000000
2473 .quad 0x0000000000000000, 0x0000000200000000
2475 .quad 0x0000000000000000, 0x0000000300000000
2477 .quad 0x0000000000000000, 0x0000000400000000
2479 .quad 0x0000000000000000, 0x0000000500000000
2481 .quad 0x0000000000000000, 0x0000000600000000
2483 .quad 0x0000000000000000, 0x0000000700000000
2485 .quad 0x0000000000000000, 0x0000000800000000
2489 .quad 0x0101010101010101, 0x0101010101010101
2490 .quad 0x0202020202020202, 0x0202020202020202
2491 .quad 0x0404040404040404, 0x0404040404040404
2492 .quad 0x0808080808080808, 0x0808080808080808
2494 .quad 0x02060a0e03070b0f, 0x0004080c0105090d
2496 .quad 0x6363636363636363, 0x6363636363636363
2497 .byte 66,105,116,45,115,108,105,99,101,100,32,65,69,83,32,102,111,114,32,120,56,54,95,54,52,47,83,83,83,69,51,44,32,69,109,105,108,105,97,32,75,195,164,115,112,101,114,44,32,80,101,116,101,114,32,83,99,104,119,97,98,101,44,32,65,110,100,121,32,80,111,108,121,97,107,111,118,0
2499 .size _bsaes_const,.-_bsaes_const