ACPI / LPSS: Make acpi_lpss_find_device() also find PCI devices
[linux/fpc-iii.git] / arch / x86 / include / asm / crypto / twofish.h
blobf618bf272b900b1992f0ca2c2381d4d6d20d8900
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ASM_X86_TWOFISH_H
3 #define ASM_X86_TWOFISH_H
5 #include <linux/crypto.h>
6 #include <crypto/twofish.h>
7 #include <crypto/b128ops.h>
9 /* regular block cipher functions from twofish_x86_64 module */
10 asmlinkage void twofish_enc_blk(struct twofish_ctx *ctx, u8 *dst,
11 const u8 *src);
12 asmlinkage void twofish_dec_blk(struct twofish_ctx *ctx, u8 *dst,
13 const u8 *src);
15 /* 3-way parallel cipher functions */
16 asmlinkage void __twofish_enc_blk_3way(struct twofish_ctx *ctx, u8 *dst,
17 const u8 *src, bool xor);
18 asmlinkage void twofish_dec_blk_3way(struct twofish_ctx *ctx, u8 *dst,
19 const u8 *src);
21 /* helpers from twofish_x86_64-3way module */
22 extern void twofish_dec_blk_cbc_3way(void *ctx, u128 *dst, const u128 *src);
23 extern void twofish_enc_blk_ctr(void *ctx, u128 *dst, const u128 *src,
24 le128 *iv);
25 extern void twofish_enc_blk_ctr_3way(void *ctx, u128 *dst, const u128 *src,
26 le128 *iv);
28 #endif /* ASM_X86_TWOFISH_H */