From: Herbert Xu Date: Tue, 20 Nov 2007 09:36:00 +0000 (+0800) Subject: [CRYPTO] cbc: Require block size to be a power of 2 X-Git-Tag: v2.6.25-rc1~1242^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50b6544e1371bfe884f787107a8de0c2f8546e8f;p=pandora-kernel.git [CRYPTO] cbc: Require block size to be a power of 2 All common block ciphers have a block size that's a power of 2. In fact, all of our block ciphers obey this rule. If we require this then CBC can be optimised to avoid an expensive divide on in-place decryption. I've also changed the saving of the first IV in the in-place decryption case to the last IV because that lets us use walk->iv (which is already aligned) for the xor operation where alignment is required. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed