On Thu, Apr 09, 2009 at 11:20:45AM +0800, Herbert Xu wrote: > > You can allocate eseqiv(alg), e.g., eseqiv(cbc(aes)). > Ok, that's possible. I missed this possibility, probaply because nobody is actually doing it this way. Thanks! Unfortunately eseqiv does not work out of the box if we do synchronous encryption. If crypto_ablkcipher_encrypt() returns synchronous, eseqiv_complete2() is called even if req->giv is already the pointer to the generated IV. The generated IV is overwritten with some random data in this case. I fixed this by calling eseqiv_complete2() just in the case when an asynchronous algorithm would call eseqiv_complete() as the complete function. I'll send the patch with an extra mail. Now pcrypt runs fine together with eseqiv and the throughput results are very similar to the ones with cpu_chainiv. Steffen -- 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