twofish.h 765 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef ASM_X86_TWOFISH_H
  3. #define ASM_X86_TWOFISH_H
  4. #include <linux/crypto.h>
  5. #include <crypto/twofish.h>
  6. #include <crypto/b128ops.h>
  7. /* regular block cipher functions from twofish_x86_64 module */
  8. asmlinkage void twofish_enc_blk(const void *ctx, u8 *dst, const u8 *src);
  9. asmlinkage void twofish_dec_blk(const void *ctx, u8 *dst, const u8 *src);
  10. /* 3-way parallel cipher functions */
  11. asmlinkage void __twofish_enc_blk_3way(const void *ctx, u8 *dst, const u8 *src,
  12. bool xor);
  13. asmlinkage void twofish_dec_blk_3way(const void *ctx, u8 *dst, const u8 *src);
  14. /* helpers from twofish_x86_64-3way module */
  15. extern void twofish_dec_blk_cbc_3way(const void *ctx, u8 *dst, const u8 *src);
  16. #endif /* ASM_X86_TWOFISH_H */