xref: /openbmc/linux/arch/x86/crypto/serpent-avx.h (revision a04ea6f7)
1*a04ea6f7SArd Biesheuvel /* SPDX-License-Identifier: GPL-2.0 */
2*a04ea6f7SArd Biesheuvel #ifndef ASM_X86_SERPENT_AVX_H
3*a04ea6f7SArd Biesheuvel #define ASM_X86_SERPENT_AVX_H
4*a04ea6f7SArd Biesheuvel 
5*a04ea6f7SArd Biesheuvel #include <crypto/b128ops.h>
6*a04ea6f7SArd Biesheuvel #include <crypto/serpent.h>
7*a04ea6f7SArd Biesheuvel #include <linux/types.h>
8*a04ea6f7SArd Biesheuvel 
9*a04ea6f7SArd Biesheuvel struct crypto_skcipher;
10*a04ea6f7SArd Biesheuvel 
11*a04ea6f7SArd Biesheuvel #define SERPENT_PARALLEL_BLOCKS 8
12*a04ea6f7SArd Biesheuvel 
13*a04ea6f7SArd Biesheuvel asmlinkage void serpent_ecb_enc_8way_avx(const void *ctx, u8 *dst,
14*a04ea6f7SArd Biesheuvel 					 const u8 *src);
15*a04ea6f7SArd Biesheuvel asmlinkage void serpent_ecb_dec_8way_avx(const void *ctx, u8 *dst,
16*a04ea6f7SArd Biesheuvel 					 const u8 *src);
17*a04ea6f7SArd Biesheuvel 
18*a04ea6f7SArd Biesheuvel asmlinkage void serpent_cbc_dec_8way_avx(const void *ctx, u8 *dst,
19*a04ea6f7SArd Biesheuvel 					 const u8 *src);
20*a04ea6f7SArd Biesheuvel 
21*a04ea6f7SArd Biesheuvel #endif
22