From: Denis Vlasenko <vda@ilport.com.ua>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org, davem@davemloft.net,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/5] 1.be_le.patch
Date: Sun, 3 Jul 2005 15:15:28 +0300 [thread overview]
Message-ID: <200507031515.29022.vda@ilport.com.ua> (raw)
In-Reply-To: <20050703114111.GB4848@gondor.apana.org.au>
On Sunday 03 July 2005 14:41, Herbert Xu wrote:
> On Mon, Jun 20, 2005 at 01:59:23PM +0300, Denis Vlasenko wrote:
> >
> > @@ -265,10 +263,10 @@ aes_set_key(void *ctx_arg, const u8 *in_
> >
> > ctx->key_length = key_len;
> >
> > - E_KEY[0] = u32_in (in_key);
> > - E_KEY[1] = u32_in (in_key + 4);
> > - E_KEY[2] = u32_in (in_key + 8);
> > - E_KEY[3] = u32_in (in_key + 12);
> > + E_KEY[0] = load_le32(in_key,0);
> > + E_KEY[1] = load_le32(in_key,1);
> > + E_KEY[2] = load_le32(in_key,2);
> > + E_KEY[3] = load_le32(in_key,3);
>
> Please insert a space after the comma.
The second param is an index in implicit vector.
Sably store_xxx and load_xxx syntax makes that non-obvious.
I deliberately did not put space there, trying to
give reader a hint that "dst,n" part is really
"dst[n]":
store_le32(dst,0, a); // like "dst[0] = a" but with (u32*) cast on dst + le32 conversion on a
store_le32(dst,1, b);
Do you still want space added?
--
vda
prev parent reply other threads:[~2005-07-03 12:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-20 10:59 Denis Vlasenko
2005-07-03 11:41 ` Herbert Xu
2005-07-03 12:15 ` Denis Vlasenko [this message]
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=200507031515.29022.vda@ilport.com.ua \
--to=vda@ilport.com.ua \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®