forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/x86/crypto/serpent-sse2-x86_64-asm_64.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Serpent Cipher 8-way parallel algorithm (x86_64/SSE2)
34 *
....@@ -6,22 +7,6 @@
67 * Based on crypto/serpent.c by
78 * Copyright (C) 2002 Dag Arne Osvik <osvik@ii.uib.no>
89 * 2003 Herbert Valerio Riedel <hvr@gnu.org>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23
- * USA
24
- *
2510 */
2611
2712 #include <linux/linkage.h>
....@@ -634,7 +619,7 @@
634619 pxor t0, x3; \
635620 movdqu x3, (3*4*4)(out);
636621
637
-ENTRY(__serpent_enc_blk_8way)
622
+SYM_FUNC_START(__serpent_enc_blk_8way)
638623 /* input:
639624 * %rdi: ctx, CTX
640625 * %rsi: dst
....@@ -690,16 +675,16 @@
690675 write_blocks(%rsi, RA1, RB1, RC1, RD1, RK0, RK1, RK2);
691676 write_blocks(%rax, RA2, RB2, RC2, RD2, RK0, RK1, RK2);
692677
693
- ret;
678
+ RET;
694679
695680 .L__enc_xor8:
696681 xor_blocks(%rsi, RA1, RB1, RC1, RD1, RK0, RK1, RK2);
697682 xor_blocks(%rax, RA2, RB2, RC2, RD2, RK0, RK1, RK2);
698683
699
- ret;
700
-ENDPROC(__serpent_enc_blk_8way)
684
+ RET;
685
+SYM_FUNC_END(__serpent_enc_blk_8way)
701686
702
-ENTRY(serpent_dec_blk_8way)
687
+SYM_FUNC_START(serpent_dec_blk_8way)
703688 /* input:
704689 * %rdi: ctx, CTX
705690 * %rsi: dst
....@@ -750,5 +735,5 @@
750735 write_blocks(%rsi, RC1, RD1, RB1, RE1, RK0, RK1, RK2);
751736 write_blocks(%rax, RC2, RD2, RB2, RE2, RK0, RK1, RK2);
752737
753
- ret;
754
-ENDPROC(serpent_dec_blk_8way)
738
+ RET;
739
+SYM_FUNC_END(serpent_dec_blk_8way)