1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/linkage.h>
4 #include <asm/assembler.h>
6 .irp b, 0, 1, 2, 3, 4, 5, 6, 7, 8
11 .inst 0xcec08400 | .L\rd | (.L\rn << 5)
15 * void sm4_ce_do_crypt(const u32 *rk, u32 *out, const u32 *in);
18 ENTRY(sm4_ce_do_crypt)
20 ld1 {v0.4s-v3.4s}, [x0], #64
21 CPU_LE( rev32 v8.16b, v8.16b )
22 ld1 {v4.4s-v7.4s}, [x0]
32 ext v8.16b, v8.16b, v8.16b, #8
33 CPU_LE( rev32 v8.16b, v8.16b )
36 ENDPROC(sm4_ce_do_crypt)