summaryrefslogtreecommitdiff
path: root/crypto/cbc.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-20 17:26:06 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:16:17 +1100
commit5011f96f810db6732339a7452330152b6cfd818a (patch)
tree519ab299a974d7984b0ad4b8692c26c76944b102 /crypto/cbc.c
parent47b69df106ed3e8836f6963c1ad469d83a6b37e3 (diff)
downloadlinux-crypto-5011f96f810db6732339a7452330152b6cfd818a.tar.gz
linux-crypto-5011f96f810db6732339a7452330152b6cfd818a.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