From: Alexey Dobriyan <adobriyan@gmail.com>
To: Al Viro <viro@ftp.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] serpent: fix endian warnings
Date: Fri, 23 Dec 2005 01:12:25 +0300 [thread overview]
Message-ID: <20051222221225.GC16883@mipter.zuzino.mipt.ru> (raw)
In-Reply-To: <20051222101523.GP27946@ftp.linux.org.uk>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
crypto/serpent.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--- a/crypto/serpent.c
+++ b/crypto/serpent.c
@@ -367,10 +367,10 @@ static int serpent_setkey(void *ctx, con
static void serpent_encrypt(void *ctx, u8 *dst, const u8 *src)
{
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;
/*
* Note: The conversions between u8* and u32* might cause trouble
@@ -425,10 +425,10 @@ static void serpent_encrypt(void *ctx, u
static void serpent_decrypt(void *ctx, u8 *dst, const u8 *src)
{
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]);
next prev parent reply other threads:[~2005-12-22 21:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-22 10:15 [PATCHSET] 2.6.15-rc6-bird1 Al Viro
2005-12-22 11:25 ` Maciej Soltysiak
2005-12-22 21:42 ` nbd: add endian annotations Alexey Dobriyan
2005-12-22 21:47 ` [PATCH] aes: fix endian warnings Alexey Dobriyan
2005-12-22 22:12 ` Alexey Dobriyan [this message]
2005-12-23 9:31 ` [PATCHSET] 2.6.15-rc6-bird2 Al Viro
2005-12-23 20:51 ` [PATCH] drivers/pcmcia/cistpl.c: fix endian warnings Alexey Dobriyan
2005-12-30 9:24 ` Dominik Brodowski
2005-12-24 9:51 ` [PATCHSET] 2.6.15-rc6-bird3 Al Viro
2005-12-25 20:14 ` [PATCHSET] 2.6.15-rc7-bird1 Al Viro
2005-12-29 4:38 ` Adrian Bunk
2006-02-04 11:27 ` [PATCHSET] 2.6.15-rc2-git1-bird1 Al Viro
2017-11-04 0:29 ` [PATCHSET] 2.6.15-rc7-bird1 Al Viro
2017-11-04 0:31 ` Al Viro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051222221225.GC16883@mipter.zuzino.mipt.ru \
--to=adobriyan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@ftp.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).