From: Herbert Xu <herbert@gondor.hengli.com.au>
To: Josh Boyer <jwboyer@redhat.com>
Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] crypto: aesni-intel - Add ivsize to ablk_ecb_alg
Date: Mon, 15 Aug 2011 15:15:28 +0800 [thread overview]
Message-ID: <20110815071528.GA29656@gondor.apana.org.au> (raw)
In-Reply-To: <20110811164040.GB2167@zod.bos.redhat.com>
On Thu, Aug 11, 2011 at 12:40:41PM -0400, Josh Boyer wrote:
> The ablkcipher structure in ablk_ecb_alg is lacking an ivsize setting.
> This causes the algorithm to fail it's self-test when it's registered
> with the error message:
>
> [ 0.806920] alg: skcipher: Failed to load transform for ecb-aes-aesni: -2
>
> crypto_lookup_skcipher doesn't like a missing ivsize. Adding the ivsize
> allows the self-test lookup to pass.
That's not right. ECB does not require an IV and therefore it
shouldn't have a non-zero IV size.
I'm not quite sure what you mean by crypto_lookup_skcipher not
liking a missing IV size. It appears to handle that case just
fine by returning the algorithm as is.
Can you show me what your /proc/crypto contains after you get the
aformentioned error?
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2011-08-15 7:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-11 16:40 Josh Boyer
2011-08-15 7:15 ` Herbert Xu [this message]
2011-08-15 11:50 ` Josh Boyer
2011-08-16 12:32 ` Herbert Xu
2011-08-18 17:44 ` Josh Boyer
2011-08-19 0:02 ` Herbert Xu
2011-08-19 2:15 ` Josh Boyer
2011-08-19 7:32 ` Herbert Xu
2011-08-19 8:12 ` Herbert Xu
2011-08-19 12:15 ` Josh Boyer
2011-08-20 8:08 ` 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=20110815071528.GA29656@gondor.apana.org.au \
--to=herbert@gondor.hengli.com.au \
--cc=jwboyer@redhat.com \
--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®