forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/x86/crypto/des3_ede-asm_64.S
....@@ -1,17 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * des3_ede-asm_64.S - x86-64 assembly implementation of 3DES cipher
34 *
45 * Copyright © 2014 Jussi Kivilinna <jussi.kivilinna@iki.fi>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
156 */
167
178 #include <linux/linkage.h>
....@@ -171,7 +162,7 @@
171162 movl left##d, (io); \
172163 movl right##d, 4(io);
173164
174
-ENTRY(des3_ede_x86_64_crypt_blk)
165
+SYM_FUNC_START(des3_ede_x86_64_crypt_blk)
175166 /* input:
176167 * %rdi: round keys, CTX
177168 * %rsi: dst
....@@ -252,8 +243,8 @@
252243 popq %r12;
253244 popq %rbx;
254245
255
- ret;
256
-ENDPROC(des3_ede_x86_64_crypt_blk)
246
+ RET;
247
+SYM_FUNC_END(des3_ede_x86_64_crypt_blk)
257248
258249 /***********************************************************************
259250 * 3-way 3DES
....@@ -427,7 +418,7 @@
427418 #define __movq(src, dst) \
428419 movq src, dst;
429420
430
-ENTRY(des3_ede_x86_64_crypt_blk_3way)
421
+SYM_FUNC_START(des3_ede_x86_64_crypt_blk_3way)
431422 /* input:
432423 * %rdi: ctx, round keys
433424 * %rsi: dst (3 blocks)
....@@ -537,8 +528,8 @@
537528 popq %r12;
538529 popq %rbx;
539530
540
- ret;
541
-ENDPROC(des3_ede_x86_64_crypt_blk_3way)
531
+ RET;
532
+SYM_FUNC_END(des3_ede_x86_64_crypt_blk_3way)
542533
543534 .section .rodata, "a", @progbits
544535 .align 16