2012-06-14 10:09:03 +08:00
|
|
|
#ifndef ASM_X86_SERPENT_AVX_H
|
|
|
|
#define ASM_X86_SERPENT_AVX_H
|
|
|
|
|
|
|
|
#include <linux/crypto.h>
|
|
|
|
#include <crypto/serpent.h>
|
|
|
|
|
|
|
|
#define SERPENT_PARALLEL_BLOCKS 8
|
|
|
|
|
2012-10-20 20:06:51 +08:00
|
|
|
asmlinkage void serpent_ecb_enc_8way_avx(struct serpent_ctx *ctx, u8 *dst,
|
|
|
|
const u8 *src);
|
|
|
|
asmlinkage void serpent_ecb_dec_8way_avx(struct serpent_ctx *ctx, u8 *dst,
|
2012-06-14 10:09:03 +08:00
|
|
|
const u8 *src);
|
|
|
|
|
2012-10-20 20:06:51 +08:00
|
|
|
asmlinkage void serpent_cbc_dec_8way_avx(struct serpent_ctx *ctx, u8 *dst,
|
|
|
|
const u8 *src);
|
|
|
|
asmlinkage void serpent_ctr_8way_avx(struct serpent_ctx *ctx, u8 *dst,
|
|
|
|
const u8 *src, le128 *iv);
|
2012-06-14 10:09:03 +08:00
|
|
|
|
2013-04-09 02:50:55 +08:00
|
|
|
asmlinkage void serpent_xts_enc_8way_avx(struct serpent_ctx *ctx, u8 *dst,
|
|
|
|
const u8 *src, le128 *iv);
|
|
|
|
asmlinkage void serpent_xts_dec_8way_avx(struct serpent_ctx *ctx, u8 *dst,
|
|
|
|
const u8 *src, le128 *iv);
|
|
|
|
|
2012-06-14 10:09:03 +08:00
|
|
|
#endif
|