From: Steffen Klassert Date: Wed, 15 Apr 2009 12:45:03 +0000 (+0800) Subject: crypto: eseqiv - Fix IV generation for sync algorithms X-Git-Tag: v2.6.30-rc7~36^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abe5fa7899fb5809ddc7336d8dd0edd5b2b96665;p=pandora-kernel.git crypto: eseqiv - Fix IV generation for sync algorithms 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. This patch fixes this by calling eseqiv_complete2() just if the generated IV has to be copied to req->giv. Signed-off-by: Steffen Klassert Signed-off-by: Herbert Xu --- Reading git-diff-tree failed