diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2005-12-23 01:12:25 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-10 16:15:33 -0700 |
commit | fea7321d0cad87c42610e7c1a7c7991564847849 (patch) | |
tree | a5974f3fdff67201fa7f27e67685817f6af7a122 /crypto/serpent.c | |
parent | 7fb14711939b02713794e875e2aca9cf25f12e9a (diff) | |
download | linux-crypto-fea7321d0cad87c42610e7c1a7c7991564847849.tar.gz linux-crypto-fea7321d0cad87c42610e7c1a7c7991564847849.zip |
[PATCH] serpent: fix endian warnings
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'crypto/serpent.c')
-rw-r--r-- | crypto/serpent.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto/serpent.c b/crypto/serpent.c index 465d091c..2b0a19a4 100644 --- a/crypto/serpent.c +++ b/crypto/serpent.c @@ -364,10 +364,10 @@ static void serpent_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) { struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); const u32 - *k = ctx->expkey, - *s = (const u32 *)src; - u32 *d = (u32 *)dst, - r0, r1, r2, r3, r4; + *k = ctx->expkey; + const __le32 *s = (const __le32 *)src; + __le32 *d = (__le32 *)dst; + u32 r0, r1, r2, r3, r4; /* * Note: The conversions between u8* and u32* might cause trouble @@ -423,10 +423,10 @@ static void serpent_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) { struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); const u32 - *k = ((struct serpent_ctx *)ctx)->expkey, - *s = (const u32 *)src; - u32 *d = (u32 *)dst, - r0, r1, r2, r3, r4; + *k = ((struct serpent_ctx *)ctx)->expkey; + const __le32 *s = (const __le32 *)src; + __le32 *d = (__le32 *)dst; + u32 r0, r1, r2, r3, r4; r0 = le32_to_cpu(s[0]); r1 = le32_to_cpu(s[1]); |