hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm64/crypto/aes-ce-core.S
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org>
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #include <linux/linkage.h>
....@@ -11,7 +8,7 @@
118
129 .arch armv8-a+crypto
1310
14
-ENTRY(__aes_ce_encrypt)
11
+SYM_FUNC_START(__aes_ce_encrypt)
1512 sub w3, w3, #2
1613 ld1 {v0.16b}, [x2]
1714 ld1 {v1.4s}, [x0], #16
....@@ -37,9 +34,9 @@
3734 eor v0.16b, v0.16b, v3.16b
3835 st1 {v0.16b}, [x1]
3936 ret
40
-ENDPROC(__aes_ce_encrypt)
37
+SYM_FUNC_END(__aes_ce_encrypt)
4138
42
-ENTRY(__aes_ce_decrypt)
39
+SYM_FUNC_START(__aes_ce_decrypt)
4340 sub w3, w3, #2
4441 ld1 {v0.16b}, [x2]
4542 ld1 {v1.4s}, [x0], #16
....@@ -65,23 +62,23 @@
6562 eor v0.16b, v0.16b, v3.16b
6663 st1 {v0.16b}, [x1]
6764 ret
68
-ENDPROC(__aes_ce_decrypt)
65
+SYM_FUNC_END(__aes_ce_decrypt)
6966
7067 /*
7168 * __aes_ce_sub() - use the aese instruction to perform the AES sbox
7269 * substitution on each byte in 'input'
7370 */
74
-ENTRY(__aes_ce_sub)
71
+SYM_FUNC_START(__aes_ce_sub)
7572 dup v1.4s, w0
7673 movi v0.16b, #0
7774 aese v0.16b, v1.16b
7875 umov w0, v0.s[0]
7976 ret
80
-ENDPROC(__aes_ce_sub)
77
+SYM_FUNC_END(__aes_ce_sub)
8178
82
-ENTRY(__aes_ce_invert)
79
+SYM_FUNC_START(__aes_ce_invert)
8380 ld1 {v0.4s}, [x1]
8481 aesimc v1.16b, v0.16b
8582 st1 {v1.4s}, [x0]
8683 ret
87
-ENDPROC(__aes_ce_invert)
84
+SYM_FUNC_END(__aes_ce_invert)