mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 10:06:43 +07:00
07bf44f869
Intel AES-NI AES acceleration instructions touch XMM state, to use that in soft_irq context, general x86 AES implementation is used as fallback. The first parameter is changed from struct crypto_tfm * to struct crypto_aes_ctx * to make it easier to deal with 16 bytes alignment requirement of AES-NI implementation. Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
12 lines
279 B
C
12 lines
279 B
C
#ifndef ASM_X86_AES_H
|
|
#define ASM_X86_AES_H
|
|
|
|
#include <linux/crypto.h>
|
|
#include <crypto/aes.h>
|
|
|
|
void crypto_aes_encrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst,
|
|
const u8 *src);
|
|
void crypto_aes_decrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst,
|
|
const u8 *src);
|
|
#endif
|