1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef ASM_X86_SERPENT_SSE2_H 3 #define ASM_X86_SERPENT_SSE2_H 4 5 #include <linux/crypto.h> 6 #include <crypto/serpent.h> 7 8 #ifdef CONFIG_X86_32 9 10 #define SERPENT_PARALLEL_BLOCKS 4 11 12 asmlinkage void __serpent_enc_blk_4way(const s 13 const u 14 asmlinkage void serpent_dec_blk_4way(const str 15 const u8 16 17 static inline void serpent_enc_blk_xway(const 18 { 19 __serpent_enc_blk_4way(ctx, dst, src, 20 } 21 22 static inline void serpent_enc_blk_xway_xor(co 23 u8 24 { 25 __serpent_enc_blk_4way(ctx, dst, src, 26 } 27 28 static inline void serpent_dec_blk_xway(const 29 { 30 serpent_dec_blk_4way(ctx, dst, src); 31 } 32 33 #else 34 35 #define SERPENT_PARALLEL_BLOCKS 8 36 37 asmlinkage void __serpent_enc_blk_8way(const s 38 const u 39 asmlinkage void serpent_dec_blk_8way(const str 40 const u8 41 42 static inline void serpent_enc_blk_xway(const 43 { 44 __serpent_enc_blk_8way(ctx, dst, src, 45 } 46 47 static inline void serpent_enc_blk_xway_xor(co 48 u8 49 { 50 __serpent_enc_blk_8way(ctx, dst, src, 51 } 52 53 static inline void serpent_dec_blk_xway(const 54 { 55 serpent_dec_blk_8way(ctx, dst, src); 56 } 57 58 #endif 59 60 #endif 61
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.