[CRYPTO] api: Add crypto_inc and crypto_xor
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Nov 2007 09:26:06 +0000 (17:26 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:17 +0000 (08:16 +1100)
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 <herbert@gondor.apana.org.au>

No differences found