From: Neil Horman <nhorman@tuxdriver.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
davem@davemloft.net
Subject: Re: [PATCH] prng; bring prng into better alignment with specification
Date: Thu, 17 Jul 2008 07:04:05 -0400 [thread overview]
Message-ID: <20080717110405.GC17892@hmsendeavour.rdu.redhat.com> (raw)
In-Reply-To: <20080717074856.GB23621@gondor.apana.org.au>
On Thu, Jul 17, 2008 at 03:48:56PM +0800, Herbert Xu wrote:
> On Wed, Jul 16, 2008 at 04:32:00PM -0400, Neil Horman wrote:
> > Bring prng into better alignment with specificaion:
> >
> > - Convert to using Generic AES 128 bit cipher
> > - Convert DT to be a non-shifted counter, increasing counter period
> >
> > Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
>
> Applied to cryptodev-2.6.
> >
> > @@ -325,17 +306,13 @@ int reset_prng_context(struct prng_context *ctx,
> > unsigned char *V, unsigned char *DT)
> > int ret;
> > - int iv_len;
> > int rc = -EFAULT;
> > unsigned char *prng_key;
> > - unsigned char *prng_iv;
> > spin_lock(&ctx->prng_lock);
> > ctx->flags |= PRNG_NEED_RESET;
> >
> > prng_key = (key != NULL) ? key : (unsigned char *)DEFAULT_PRNG_KEY;
> >
> > - prng_iv = iv ? iv : (unsigned char *)DEFAULT_PRNG_IV;
>
> We can now kill the iv parameter too.
>
Yeah, I was trying to decide if I should remove that or not, in the event we
wanted to support alternate [blk]ciphers in the future for the cprng. As I
think about it, I don't think its a big deal to nix. I'll get rid of it
shortly.
Thanks
Neil
> Thanks,
> --
> Visit Openswan at http://www.openswan.org/
> Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
/***************************************************
*Neil Horman
*nhorman@tuxdriver.com
*gpg keyid: 1024D / 0x92A74FA1
*http://pgp.mit.edu
***************************************************/
prev parent reply other threads:[~2008-07-17 11:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-16 20:32 Neil Horman
2008-07-17 7:48 ` Herbert Xu
2008-07-17 11:04 ` Neil Horman [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=20080717110405.GC17892@hmsendeavour.rdu.redhat.com \
--to=nhorman@tuxdriver.com \
--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®