summaryrefslogtreecommitdiffstats
path: root/crypto/cbc.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-20 10:26:06 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 22:16:17 +0100
commit7613636def82092a5c7b6322078a2af832410417 (patch)
treea05fec8d522e78d21b7b45f9ac330bcd1372e1af /crypto/cbc.c
parent[HIFN]: Add support for using the random number generator (diff)
downloadlinux-7613636def82092a5c7b6322078a2af832410417.tar.xz
linux-7613636def82092a5c7b6322078a2af832410417.zip
[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>
Diffstat (limited to 'crypto/cbc.c')
0 files changed, 0 insertions, 0 deletions