| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Serpent Cipher 4-way parallel algorithm (i586/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> |
|---|
| .. | .. |
|---|
| 512 | 497 | pxor t0, x3; \ |
|---|
| 513 | 498 | movdqu x3, (3*4*4)(out); |
|---|
| 514 | 499 | |
|---|
| 515 | | -ENTRY(__serpent_enc_blk_4way) |
|---|
| 500 | +SYM_FUNC_START(__serpent_enc_blk_4way) |
|---|
| 516 | 501 | /* input: |
|---|
| 517 | 502 | * arg_ctx(%esp): ctx, CTX |
|---|
| 518 | 503 | * arg_dst(%esp): dst |
|---|
| .. | .. |
|---|
| 568 | 553 | |
|---|
| 569 | 554 | write_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE); |
|---|
| 570 | 555 | |
|---|
| 571 | | - ret; |
|---|
| 556 | + RET; |
|---|
| 572 | 557 | |
|---|
| 573 | 558 | .L__enc_xor4: |
|---|
| 574 | 559 | xor_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE); |
|---|
| 575 | 560 | |
|---|
| 576 | | - ret; |
|---|
| 577 | | -ENDPROC(__serpent_enc_blk_4way) |
|---|
| 561 | + RET; |
|---|
| 562 | +SYM_FUNC_END(__serpent_enc_blk_4way) |
|---|
| 578 | 563 | |
|---|
| 579 | | -ENTRY(serpent_dec_blk_4way) |
|---|
| 564 | +SYM_FUNC_START(serpent_dec_blk_4way) |
|---|
| 580 | 565 | /* input: |
|---|
| 581 | 566 | * arg_ctx(%esp): ctx, CTX |
|---|
| 582 | 567 | * arg_dst(%esp): dst |
|---|
| .. | .. |
|---|
| 627 | 612 | movl arg_dst(%esp), %eax; |
|---|
| 628 | 613 | write_blocks(%eax, RC, RD, RB, RE, RT0, RT1, RA); |
|---|
| 629 | 614 | |
|---|
| 630 | | - ret; |
|---|
| 631 | | -ENDPROC(serpent_dec_blk_4way) |
|---|
| 615 | + RET; |
|---|
| 616 | +SYM_FUNC_END(serpent_dec_blk_4way) |
|---|