commit | 7613636def82092a5c7b6322078a2af832410417 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Tue Nov 20 17:26:06 2007 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Jan 11 08:16:17 2008 +1100 |
tree | a05fec8d522e78d21b7b45f9ac330bcd1372e1af | |
parent | fcd06755936d2209b69650d2a7cc99cbcd3ccc67 [diff] |
[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 <herbert@gondor.apana.org.au>