.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Blowfish Cipher Algorithm (x86_64) |
---|
3 | 4 | * |
---|
4 | 5 | * 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 | | - * |
---|
21 | 6 | */ |
---|
22 | 7 | |
---|
23 | 8 | #include <linux/linkage.h> |
---|
.. | .. |
---|
118 | 103 | bswapq RX0; \ |
---|
119 | 104 | xorq RX0, (RIO); |
---|
120 | 105 | |
---|
121 | | -ENTRY(__blowfish_enc_blk) |
---|
| 106 | +SYM_FUNC_START(__blowfish_enc_blk) |
---|
122 | 107 | /* input: |
---|
123 | 108 | * %rdi: ctx |
---|
124 | 109 | * %rsi: dst |
---|
.. | .. |
---|
150 | 135 | jnz .L__enc_xor; |
---|
151 | 136 | |
---|
152 | 137 | write_block(); |
---|
153 | | - ret; |
---|
| 138 | + RET; |
---|
154 | 139 | .L__enc_xor: |
---|
155 | 140 | xor_block(); |
---|
156 | | - ret; |
---|
157 | | -ENDPROC(__blowfish_enc_blk) |
---|
| 141 | + RET; |
---|
| 142 | +SYM_FUNC_END(__blowfish_enc_blk) |
---|
158 | 143 | |
---|
159 | | -ENTRY(blowfish_dec_blk) |
---|
| 144 | +SYM_FUNC_START(blowfish_dec_blk) |
---|
160 | 145 | /* input: |
---|
161 | 146 | * %rdi: ctx |
---|
162 | 147 | * %rsi: dst |
---|
.. | .. |
---|
185 | 170 | |
---|
186 | 171 | movq %r11, %r12; |
---|
187 | 172 | |
---|
188 | | - ret; |
---|
189 | | -ENDPROC(blowfish_dec_blk) |
---|
| 173 | + RET; |
---|
| 174 | +SYM_FUNC_END(blowfish_dec_blk) |
---|
190 | 175 | |
---|
191 | 176 | /********************************************************************** |
---|
192 | 177 | 4-way blowfish, four blocks parallel |
---|
.. | .. |
---|
298 | 283 | bswapq RX3; \ |
---|
299 | 284 | xorq RX3, 24(RIO); |
---|
300 | 285 | |
---|
301 | | -ENTRY(__blowfish_enc_blk_4way) |
---|
| 286 | +SYM_FUNC_START(__blowfish_enc_blk_4way) |
---|
302 | 287 | /* input: |
---|
303 | 288 | * %rdi: ctx |
---|
304 | 289 | * %rsi: dst |
---|
.. | .. |
---|
337 | 322 | |
---|
338 | 323 | popq %rbx; |
---|
339 | 324 | popq %r12; |
---|
340 | | - ret; |
---|
| 325 | + RET; |
---|
341 | 326 | |
---|
342 | 327 | .L__enc_xor4: |
---|
343 | 328 | xor_block4(); |
---|
344 | 329 | |
---|
345 | 330 | popq %rbx; |
---|
346 | 331 | popq %r12; |
---|
347 | | - ret; |
---|
348 | | -ENDPROC(__blowfish_enc_blk_4way) |
---|
| 332 | + RET; |
---|
| 333 | +SYM_FUNC_END(__blowfish_enc_blk_4way) |
---|
349 | 334 | |
---|
350 | | -ENTRY(blowfish_dec_blk_4way) |
---|
| 335 | +SYM_FUNC_START(blowfish_dec_blk_4way) |
---|
351 | 336 | /* input: |
---|
352 | 337 | * %rdi: ctx |
---|
353 | 338 | * %rsi: dst |
---|
.. | .. |
---|
379 | 364 | popq %rbx; |
---|
380 | 365 | popq %r12; |
---|
381 | 366 | |
---|
382 | | - ret; |
---|
383 | | -ENDPROC(blowfish_dec_blk_4way) |
---|
| 367 | + RET; |
---|
| 368 | +SYM_FUNC_END(blowfish_dec_blk_4way) |
---|