Merge tag 'pull-bcachefs-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-block.git] / arch / x86 / crypto / twofish.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
a7378d4e
JK
2#ifndef ASM_X86_TWOFISH_H
3#define ASM_X86_TWOFISH_H
4
5#include <linux/crypto.h>
6#include <crypto/twofish.h>
a7378d4e
JK
7#include <crypto/b128ops.h>
8
a7378d4e 9/* regular block cipher functions from twofish_x86_64 module */
9c1e8836
KC
10asmlinkage void twofish_enc_blk(const void *ctx, u8 *dst, const u8 *src);
11asmlinkage void twofish_dec_blk(const void *ctx, u8 *dst, const u8 *src);
a7378d4e
JK
12
13/* 3-way parallel cipher functions */
9c1e8836
KC
14asmlinkage void __twofish_enc_blk_3way(const void *ctx, u8 *dst, const u8 *src,
15 bool xor);
16asmlinkage void twofish_dec_blk_3way(const void *ctx, u8 *dst, const u8 *src);
a7378d4e
JK
17
18/* helpers from twofish_x86_64-3way module */
9c1e8836 19extern void twofish_dec_blk_cbc_3way(const void *ctx, u8 *dst, const u8 *src);
a7378d4e 20
a7378d4e 21#endif /* ASM_X86_TWOFISH_H */