.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Serpent Cipher 8-way parallel algorithm (x86_64/SSE2) |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Based on crypto/serpent.c by |
---|
7 | 8 | * Copyright (C) 2002 Dag Arne Osvik <osvik@ii.uib.no> |
---|
8 | 9 | * 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 | | - * |
---|
25 | 10 | */ |
---|
26 | 11 | |
---|
27 | 12 | #include <linux/linkage.h> |
---|
.. | .. |
---|
634 | 619 | pxor t0, x3; \ |
---|
635 | 620 | movdqu x3, (3*4*4)(out); |
---|
636 | 621 | |
---|
637 | | -ENTRY(__serpent_enc_blk_8way) |
---|
| 622 | +SYM_FUNC_START(__serpent_enc_blk_8way) |
---|
638 | 623 | /* input: |
---|
639 | 624 | * %rdi: ctx, CTX |
---|
640 | 625 | * %rsi: dst |
---|
.. | .. |
---|
690 | 675 | write_blocks(%rsi, RA1, RB1, RC1, RD1, RK0, RK1, RK2); |
---|
691 | 676 | write_blocks(%rax, RA2, RB2, RC2, RD2, RK0, RK1, RK2); |
---|
692 | 677 | |
---|
693 | | - ret; |
---|
| 678 | + RET; |
---|
694 | 679 | |
---|
695 | 680 | .L__enc_xor8: |
---|
696 | 681 | xor_blocks(%rsi, RA1, RB1, RC1, RD1, RK0, RK1, RK2); |
---|
697 | 682 | xor_blocks(%rax, RA2, RB2, RC2, RD2, RK0, RK1, RK2); |
---|
698 | 683 | |
---|
699 | | - ret; |
---|
700 | | -ENDPROC(__serpent_enc_blk_8way) |
---|
| 684 | + RET; |
---|
| 685 | +SYM_FUNC_END(__serpent_enc_blk_8way) |
---|
701 | 686 | |
---|
702 | | -ENTRY(serpent_dec_blk_8way) |
---|
| 687 | +SYM_FUNC_START(serpent_dec_blk_8way) |
---|
703 | 688 | /* input: |
---|
704 | 689 | * %rdi: ctx, CTX |
---|
705 | 690 | * %rsi: dst |
---|
.. | .. |
---|
750 | 735 | write_blocks(%rsi, RC1, RD1, RB1, RE1, RK0, RK1, RK2); |
---|
751 | 736 | write_blocks(%rax, RC2, RD2, RB2, RE2, RK0, RK1, RK2); |
---|
752 | 737 | |
---|
753 | | - ret; |
---|
754 | | -ENDPROC(serpent_dec_blk_8way) |
---|
| 738 | + RET; |
---|
| 739 | +SYM_FUNC_END(serpent_dec_blk_8way) |
---|