aria-avx.h 507 B

12345678910111213141516
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. #ifndef ASM_X86_ARIA_AVX_H
  3. #define ASM_X86_ARIA_AVX_H
  4. #include <linux/types.h>
  5. #define ARIA_AESNI_PARALLEL_BLOCKS 16
  6. #define ARIA_AESNI_PARALLEL_BLOCK_SIZE (ARIA_BLOCK_SIZE * 16)
  7. struct aria_avx_ops {
  8. void (*aria_encrypt_16way)(const void *ctx, u8 *dst, const u8 *src);
  9. void (*aria_decrypt_16way)(const void *ctx, u8 *dst, const u8 *src);
  10. void (*aria_ctr_crypt_16way)(const void *ctx, u8 *dst, const u8 *src,
  11. u8 *keystream, u8 *iv);
  12. };
  13. #endif