.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Twofish Cipher 3-way parallel 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> |
---|
.. | .. |
---|
235 | 220 | rorq $32, RAB2; \ |
---|
236 | 221 | outunpack3(mov, RIO, 2, RAB, 2); |
---|
237 | 222 | |
---|
238 | | -ENTRY(__twofish_enc_blk_3way) |
---|
| 223 | +SYM_FUNC_START(__twofish_enc_blk_3way) |
---|
239 | 224 | /* input: |
---|
240 | 225 | * %rdi: ctx, CTX |
---|
241 | 226 | * %rsi: dst |
---|
.. | .. |
---|
273 | 258 | popq %rbx; |
---|
274 | 259 | popq %r12; |
---|
275 | 260 | popq %r13; |
---|
276 | | - ret; |
---|
| 261 | + RET; |
---|
277 | 262 | |
---|
278 | 263 | .L__enc_xor3: |
---|
279 | 264 | outunpack_enc3(xor); |
---|
.. | .. |
---|
281 | 266 | popq %rbx; |
---|
282 | 267 | popq %r12; |
---|
283 | 268 | popq %r13; |
---|
284 | | - ret; |
---|
285 | | -ENDPROC(__twofish_enc_blk_3way) |
---|
| 269 | + RET; |
---|
| 270 | +SYM_FUNC_END(__twofish_enc_blk_3way) |
---|
286 | 271 | |
---|
287 | | -ENTRY(twofish_dec_blk_3way) |
---|
| 272 | +SYM_FUNC_START(twofish_dec_blk_3way) |
---|
288 | 273 | /* input: |
---|
289 | 274 | * %rdi: ctx, CTX |
---|
290 | 275 | * %rsi: dst |
---|
.. | .. |
---|
316 | 301 | popq %rbx; |
---|
317 | 302 | popq %r12; |
---|
318 | 303 | popq %r13; |
---|
319 | | - ret; |
---|
320 | | -ENDPROC(twofish_dec_blk_3way) |
---|
| 304 | + RET; |
---|
| 305 | +SYM_FUNC_END(twofish_dec_blk_3way) |
---|