serpent-avx.h 518 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef ASM_X86_SERPENT_AVX_H
  3. #define ASM_X86_SERPENT_AVX_H
  4. #include <crypto/b128ops.h>
  5. #include <crypto/serpent.h>
  6. #include <linux/types.h>
  7. struct crypto_skcipher;
  8. #define SERPENT_PARALLEL_BLOCKS 8
  9. asmlinkage void serpent_ecb_enc_8way_avx(const void *ctx, u8 *dst,
  10. const u8 *src);
  11. asmlinkage void serpent_ecb_dec_8way_avx(const void *ctx, u8 *dst,
  12. const u8 *src);
  13. asmlinkage void serpent_cbc_dec_8way_avx(const void *ctx, u8 *dst,
  14. const u8 *src);
  15. #endif