On Mon, Jan 12, 2009 at 02:55:10PM +0800, Huang Ying wrote: > > I use a "shell" cbc(aes) algorithm which chooses between > cryptd(__cbc-aes-aesni) and __cbc-aes-aesni according to context. But > the struct ablkcipher_request passed in can not be used for cryptd(*). > This can be resolved by allocating another struct ablkcipher_request for > cryptd(*) for each incoming struct ablkcipher_request. But is there any > better solution? You should include that other ablkcipher_request as part of the context of your ablkcipher_request. See for example how aead embeds it. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <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-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html