forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/x86/crypto/twofish-x86_64-asm_64-3way.S
....@@ -1,23 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Twofish Cipher 3-way parallel algorithm (x86_64)
34 *
45 * Copyright (C) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.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.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19
- * USA
20
- *
216 */
227
238 #include <linux/linkage.h>
....@@ -235,7 +220,7 @@
235220 rorq $32, RAB2; \
236221 outunpack3(mov, RIO, 2, RAB, 2);
237222
238
-ENTRY(__twofish_enc_blk_3way)
223
+SYM_FUNC_START(__twofish_enc_blk_3way)
239224 /* input:
240225 * %rdi: ctx, CTX
241226 * %rsi: dst
....@@ -273,7 +258,7 @@
273258 popq %rbx;
274259 popq %r12;
275260 popq %r13;
276
- ret;
261
+ RET;
277262
278263 .L__enc_xor3:
279264 outunpack_enc3(xor);
....@@ -281,10 +266,10 @@
281266 popq %rbx;
282267 popq %r12;
283268 popq %r13;
284
- ret;
285
-ENDPROC(__twofish_enc_blk_3way)
269
+ RET;
270
+SYM_FUNC_END(__twofish_enc_blk_3way)
286271
287
-ENTRY(twofish_dec_blk_3way)
272
+SYM_FUNC_START(twofish_dec_blk_3way)
288273 /* input:
289274 * %rdi: ctx, CTX
290275 * %rsi: dst
....@@ -316,5 +301,5 @@
316301 popq %rbx;
317302 popq %r12;
318303 popq %r13;
319
- ret;
320
-ENDPROC(twofish_dec_blk_3way)
304
+ RET;
305
+SYM_FUNC_END(twofish_dec_blk_3way)