Merge tag 'erofs-for-6.8-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / arch / x86 / crypto / sm4-avx.h
CommitLineData
de79d9aa
TZ
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef ASM_X86_SM4_AVX_H
3#define ASM_X86_SM4_AVX_H
4
5#include <linux/types.h>
6#include <crypto/sm4.h>
7
8typedef void (*sm4_crypt_func)(const u32 *rk, u8 *dst, const u8 *src, u8 *iv);
9
10int sm4_avx_ecb_encrypt(struct skcipher_request *req);
11int sm4_avx_ecb_decrypt(struct skcipher_request *req);
12
13int sm4_cbc_encrypt(struct skcipher_request *req);
14int sm4_avx_cbc_decrypt(struct skcipher_request *req,
15 unsigned int bsize, sm4_crypt_func func);
16
de79d9aa
TZ
17int sm4_avx_ctr_crypt(struct skcipher_request *req,
18 unsigned int bsize, sm4_crypt_func func);
19
20#endif