hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/crypto/camellia-x86_64-asm_64.S
....@@ -1,23 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Camellia Cipher Algorithm (x86_64)
34 *
45 * Copyright (C) 2012 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>
....@@ -190,7 +175,7 @@
190175 bswapq RAB0; \
191176 movq RAB0, 4*2(RIO);
192177
193
-ENTRY(__camellia_enc_blk)
178
+SYM_FUNC_START(__camellia_enc_blk)
194179 /* input:
195180 * %rdi: ctx, CTX
196181 * %rsi: dst
....@@ -228,16 +213,16 @@
228213 enc_outunpack(mov, RT1);
229214
230215 movq RR12, %r12;
231
- ret;
216
+ RET;
232217
233218 .L__enc_xor:
234219 enc_outunpack(xor, RT1);
235220
236221 movq RR12, %r12;
237
- ret;
238
-ENDPROC(__camellia_enc_blk)
222
+ RET;
223
+SYM_FUNC_END(__camellia_enc_blk)
239224
240
-ENTRY(camellia_dec_blk)
225
+SYM_FUNC_START(camellia_dec_blk)
241226 /* input:
242227 * %rdi: ctx, CTX
243228 * %rsi: dst
....@@ -272,8 +257,8 @@
272257 dec_outunpack();
273258
274259 movq RR12, %r12;
275
- ret;
276
-ENDPROC(camellia_dec_blk)
260
+ RET;
261
+SYM_FUNC_END(camellia_dec_blk)
277262
278263 /**********************************************************************
279264 2-way camellia
....@@ -424,7 +409,7 @@
424409 bswapq RAB1; \
425410 movq RAB1, 12*2(RIO);
426411
427
-ENTRY(__camellia_enc_blk_2way)
412
+SYM_FUNC_START(__camellia_enc_blk_2way)
428413 /* input:
429414 * %rdi: ctx, CTX
430415 * %rsi: dst
....@@ -463,17 +448,17 @@
463448
464449 movq RR12, %r12;
465450 popq %rbx;
466
- ret;
451
+ RET;
467452
468453 .L__enc2_xor:
469454 enc_outunpack2(xor, RT2);
470455
471456 movq RR12, %r12;
472457 popq %rbx;
473
- ret;
474
-ENDPROC(__camellia_enc_blk_2way)
458
+ RET;
459
+SYM_FUNC_END(__camellia_enc_blk_2way)
475460
476
-ENTRY(camellia_dec_blk_2way)
461
+SYM_FUNC_START(camellia_dec_blk_2way)
477462 /* input:
478463 * %rdi: ctx, CTX
479464 * %rsi: dst
....@@ -510,5 +495,5 @@
510495
511496 movq RR12, %r12;
512497 movq RXOR, %rbx;
513
- ret;
514
-ENDPROC(camellia_dec_blk_2way)
498
+ RET;
499
+SYM_FUNC_END(camellia_dec_blk_2way)