hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/crypto/serpent-sse2.h
....@@ -9,25 +9,23 @@
99
1010 #define SERPENT_PARALLEL_BLOCKS 4
1111
12
-asmlinkage void __serpent_enc_blk_4way(struct serpent_ctx *ctx, u8 *dst,
12
+asmlinkage void __serpent_enc_blk_4way(const struct serpent_ctx *ctx, u8 *dst,
1313 const u8 *src, bool xor);
14
-asmlinkage void serpent_dec_blk_4way(struct serpent_ctx *ctx, u8 *dst,
14
+asmlinkage void serpent_dec_blk_4way(const struct serpent_ctx *ctx, u8 *dst,
1515 const u8 *src);
1616
17
-static inline void serpent_enc_blk_xway(struct serpent_ctx *ctx, u8 *dst,
18
- const u8 *src)
17
+static inline void serpent_enc_blk_xway(const void *ctx, u8 *dst, const u8 *src)
1918 {
2019 __serpent_enc_blk_4way(ctx, dst, src, false);
2120 }
2221
23
-static inline void serpent_enc_blk_xway_xor(struct serpent_ctx *ctx, u8 *dst,
24
- const u8 *src)
22
+static inline void serpent_enc_blk_xway_xor(const struct serpent_ctx *ctx,
23
+ u8 *dst, const u8 *src)
2524 {
2625 __serpent_enc_blk_4way(ctx, dst, src, true);
2726 }
2827
29
-static inline void serpent_dec_blk_xway(struct serpent_ctx *ctx, u8 *dst,
30
- const u8 *src)
28
+static inline void serpent_dec_blk_xway(const void *ctx, u8 *dst, const u8 *src)
3129 {
3230 serpent_dec_blk_4way(ctx, dst, src);
3331 }
....@@ -36,25 +34,23 @@
3634
3735 #define SERPENT_PARALLEL_BLOCKS 8
3836
39
-asmlinkage void __serpent_enc_blk_8way(struct serpent_ctx *ctx, u8 *dst,
37
+asmlinkage void __serpent_enc_blk_8way(const struct serpent_ctx *ctx, u8 *dst,
4038 const u8 *src, bool xor);
41
-asmlinkage void serpent_dec_blk_8way(struct serpent_ctx *ctx, u8 *dst,
39
+asmlinkage void serpent_dec_blk_8way(const struct serpent_ctx *ctx, u8 *dst,
4240 const u8 *src);
4341
44
-static inline void serpent_enc_blk_xway(struct serpent_ctx *ctx, u8 *dst,
45
- const u8 *src)
42
+static inline void serpent_enc_blk_xway(const void *ctx, u8 *dst, const u8 *src)
4643 {
4744 __serpent_enc_blk_8way(ctx, dst, src, false);
4845 }
4946
50
-static inline void serpent_enc_blk_xway_xor(struct serpent_ctx *ctx, u8 *dst,
51
- const u8 *src)
47
+static inline void serpent_enc_blk_xway_xor(const struct serpent_ctx *ctx,
48
+ u8 *dst, const u8 *src)
5249 {
5350 __serpent_enc_blk_8way(ctx, dst, src, true);
5451 }
5552
56
-static inline void serpent_dec_blk_xway(struct serpent_ctx *ctx, u8 *dst,
57
- const u8 *src)
53
+static inline void serpent_dec_blk_xway(const void *ctx, u8 *dst, const u8 *src)
5854 {
5955 serpent_dec_blk_8way(ctx, dst, src);
6056 }