Re: [PATCH] crypto: aesni-intel - Add ivsize to ablk_ecb_alg

From: Herbert Xu
Date: Tue Aug 16 2011 - 08:32:36 EST


On Mon, Aug 15, 2011 at 07:50:39AM -0400, Josh Boyer wrote:
>
> Well, yes, it does in this code:
>
> if (!((alg->cra_flags & CRYPTO_ALG_TYPE_MASK) ==
> CRYPTO_ALG_TYPE_BLKCIPHER ? alg->cra_blkcipher.ivsize :
> alg->cra_ablkcipher.ivsize)) {
>
> printk(KERN_ERR "%s: %d\n", __func__, __LINE__);
> return alg;
> }
>
> But the lookup seems to fail after it returns (see traces below).

OK something's clearly screwed up. I'll try to reproduce this
here.

Thanks!
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/