From: Herbert Xu Date: Tue, 20 Nov 2007 09:26:06 +0000 (+0800) Subject: [CRYPTO] api: Add crypto_inc and crypto_xor X-Git-Tag: v2.6.25-rc1~1242^2~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7613636def82092a5c7b6322078a2af832410417;p=pandora-kernel.git [CRYPTO] api: Add crypto_inc and crypto_xor With the addition of more stream ciphers we need to curb the proliferation of ad-hoc xor functions. This patch creates a generic pair of functions, crypto_inc and crypto_xor which does big-endian increment and exclusive or, respectively. For optimum performance, they both use u32 operations so alignment must be as that of u32 even though the arguments are of type u8 *. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed