| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * des3_ede-asm_64.S - x86-64 assembly implementation of 3DES cipher |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright © 2014 Jussi Kivilinna <jussi.kivilinna@iki.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 | 6 | */ |
|---|
| 16 | 7 | |
|---|
| 17 | 8 | #include <linux/linkage.h> |
|---|
| .. | .. |
|---|
| 171 | 162 | movl left##d, (io); \ |
|---|
| 172 | 163 | movl right##d, 4(io); |
|---|
| 173 | 164 | |
|---|
| 174 | | -ENTRY(des3_ede_x86_64_crypt_blk) |
|---|
| 165 | +SYM_FUNC_START(des3_ede_x86_64_crypt_blk) |
|---|
| 175 | 166 | /* input: |
|---|
| 176 | 167 | * %rdi: round keys, CTX |
|---|
| 177 | 168 | * %rsi: dst |
|---|
| .. | .. |
|---|
| 252 | 243 | popq %r12; |
|---|
| 253 | 244 | popq %rbx; |
|---|
| 254 | 245 | |
|---|
| 255 | | - ret; |
|---|
| 256 | | -ENDPROC(des3_ede_x86_64_crypt_blk) |
|---|
| 246 | + RET; |
|---|
| 247 | +SYM_FUNC_END(des3_ede_x86_64_crypt_blk) |
|---|
| 257 | 248 | |
|---|
| 258 | 249 | /*********************************************************************** |
|---|
| 259 | 250 | * 3-way 3DES |
|---|
| .. | .. |
|---|
| 427 | 418 | #define __movq(src, dst) \ |
|---|
| 428 | 419 | movq src, dst; |
|---|
| 429 | 420 | |
|---|
| 430 | | -ENTRY(des3_ede_x86_64_crypt_blk_3way) |
|---|
| 421 | +SYM_FUNC_START(des3_ede_x86_64_crypt_blk_3way) |
|---|
| 431 | 422 | /* input: |
|---|
| 432 | 423 | * %rdi: ctx, round keys |
|---|
| 433 | 424 | * %rsi: dst (3 blocks) |
|---|
| .. | .. |
|---|
| 537 | 528 | popq %r12; |
|---|
| 538 | 529 | popq %rbx; |
|---|
| 539 | 530 | |
|---|
| 540 | | - ret; |
|---|
| 541 | | -ENDPROC(des3_ede_x86_64_crypt_blk_3way) |
|---|
| 531 | + RET; |
|---|
| 532 | +SYM_FUNC_END(des3_ede_x86_64_crypt_blk_3way) |
|---|
| 542 | 533 | |
|---|
| 543 | 534 | .section .rodata, "a", @progbits |
|---|
| 544 | 535 | .align 16 |
|---|