diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-11-20 17:26:06 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-11 08:16:17 +1100 |
commit | 5011f96f810db6732339a7452330152b6cfd818a (patch) | |
tree | 519ab299a974d7984b0ad4b8692c26c76944b102 /crypto/fcrypt.c | |
parent | 47b69df106ed3e8836f6963c1ad469d83a6b37e3 (diff) | |
download | linux-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/fcrypt.c')
0 files changed, 0 insertions, 0 deletions