| .. | .. | 
|---|
| 9 | 9 |   | 
|---|
| 10 | 10 |  #define SERPENT_PARALLEL_BLOCKS 4 | 
|---|
| 11 | 11 |   | 
|---|
| 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,  | 
|---|
| 13 | 13 |  				       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,  | 
|---|
| 15 | 15 |  				     const u8 *src); | 
|---|
| 16 | 16 |   | 
|---|
| 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)  | 
|---|
| 19 | 18 |  { | 
|---|
| 20 | 19 |  	__serpent_enc_blk_4way(ctx, dst, src, false); | 
|---|
| 21 | 20 |  } | 
|---|
| 22 | 21 |   | 
|---|
| 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)  | 
|---|
| 25 | 24 |  { | 
|---|
| 26 | 25 |  	__serpent_enc_blk_4way(ctx, dst, src, true); | 
|---|
| 27 | 26 |  } | 
|---|
| 28 | 27 |   | 
|---|
| 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)  | 
|---|
| 31 | 29 |  { | 
|---|
| 32 | 30 |  	serpent_dec_blk_4way(ctx, dst, src); | 
|---|
| 33 | 31 |  } | 
|---|
| .. | .. | 
|---|
| 36 | 34 |   | 
|---|
| 37 | 35 |  #define SERPENT_PARALLEL_BLOCKS 8 | 
|---|
| 38 | 36 |   | 
|---|
| 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,  | 
|---|
| 40 | 38 |  				       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,  | 
|---|
| 42 | 40 |  				     const u8 *src); | 
|---|
| 43 | 41 |   | 
|---|
| 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)  | 
|---|
| 46 | 43 |  { | 
|---|
| 47 | 44 |  	__serpent_enc_blk_8way(ctx, dst, src, false); | 
|---|
| 48 | 45 |  } | 
|---|
| 49 | 46 |   | 
|---|
| 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)  | 
|---|
| 52 | 49 |  { | 
|---|
| 53 | 50 |  	__serpent_enc_blk_8way(ctx, dst, src, true); | 
|---|
| 54 | 51 |  } | 
|---|
| 55 | 52 |   | 
|---|
| 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)  | 
|---|
| 58 | 54 |  { | 
|---|
| 59 | 55 |  	serpent_dec_blk_8way(ctx, dst, src); | 
|---|
| 60 | 56 |  } | 
|---|