From: Kim Phillips <kim.phillips@freescale.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: <phil@nwl.cc>, <linux-crypto@vger.kernel.org>
Subject: Re: aead: driver side documentation
Date: Fri, 8 Apr 2011 15:44:01 -0500 [thread overview]
Message-ID: <20110408154401.4cbb989b.kim.phillips@freescale.com> (raw)
In-Reply-To: <20110408005533.GA14581@gondor.apana.org.au>
On Fri, 8 Apr 2011 08:55:33 +0800
Herbert Xu <herbert@gondor.apana.org.au> wrote:
> Kim Phillips <kim.phillips@freescale.com> wrote:
> >
> > I started to add test vectors from [1] to crypto/testmgr.c, but it
> > required that drivers not assume associated data, iv, and cipher data
> > were contiguous in memory, and since some of them do, I don't know if
> > such a contribution would be acceptable upstream.
>
> Such drivers are broken and should be fixed.
ok.
> > then there's the rtnetlink dependencies I mention in [2] that
> > also make drivers fail AEAD testmgr tests in their setkey()
> > implementations, IIRC, because testmgr keys aren't RTA_OK.
>
> Can you elaborate on this problem?
the following conditions in a driver setkey fail:
if (!RTA_OK(rta, keylen))
goto badkey;
if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM)
goto badkey;
because testmgr keys are plain strings, not rtattr structs.
Kim
next prev parent reply other threads:[~2011-04-08 20:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 17:03 aead: driver side documentation Phil Sutter
2011-04-05 1:35 ` Kim Phillips
2011-04-05 13:04 ` Phil Sutter
2011-04-06 0:21 ` Kim Phillips
2011-04-08 0:55 ` Herbert Xu
2011-04-08 20:44 ` Kim Phillips [this message]
2011-04-15 8:46 ` Herbert Xu
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=20110408154401.4cbb989b.kim.phillips@freescale.com \
--to=kim.phillips@freescale.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=phil@nwl.cc \
/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