From: Kim Phillips Date: Sun, 14 Sep 2008 20:41:19 +0000 (-0700) Subject: crypto: talitos - Avoid consecutive packets going out with same IV X-Git-Tag: v2.6.27-rc7~25^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba95487df97f9c45cfdae2a47de56235e7a13dc5;p=pandora-kernel.git crypto: talitos - Avoid consecutive packets going out with same IV The SEC's h/w IV out implementation DMAs the trailing encrypted payload block of the last encryption to ctx->iv. Since the last encryption may still be pending completion, we can sufficiently prevent successive packets from being transmitted with the same IV by xoring with sequence number. Also initialize alg_list earlier to prevent oopsing on a failed probe. Signed-off-by: Kim Phillips Signed-off-by: Lee Nipper Signed-off-by: Herbert Xu --- Reading git-diff-tree failed