original_kernel/crypto
Joy Latten 2f40a178e7 [CRYPTO] xcbc: Fix crash with IPsec
When using aes-xcbc-mac for authentication in IPsec, 
the kernel crashes. It seems this algorithm doesn't 
account for the space IPsec may make in scatterlist for authtag.
Thus when crypto_xcbc_digest_update2() gets called,
nbytes may be less than sg[i].length. 
Since nbytes is an unsigned number, it wraps
at the end of the loop allowing us to go back 
into loop and causing crash in memcpy.

I used update function in digest.c to model this fix.
Please let me know if it looks ok.

Signed-off-by: Joy Latten <latten@austin.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2008-03-06 19:28:44 +08:00
..
async_tx
Kconfig
Makefile
ablkcipher.c
aead.c
aes_generic.c
algapi.c
anubis.c
api.c
arc4.c
authenc.c
blkcipher.c
blowfish.c
camellia.c
cast5.c
cast6.c
cbc.c
ccm.c
chainiv.c
cipher.c
compress.c
crc32c.c
cryptd.c
crypto_null.c
cryptomgr.c
ctr.c
deflate.c
des_generic.c
digest.c
ecb.c
eseqiv.c
fcrypt.c
gcm.c
gf128mul.c
hash.c
hmac.c
internal.h
khazad.c
lrw.c
lzo.c
md4.c
md5.c
michael_mic.c
pcbc.c
proc.c
salsa20_generic.c
scatterwalk.c
seed.c
seqiv.c
serpent.c
sha1_generic.c
sha256_generic.c
sha512.c
tcrypt.c
tcrypt.h
tea.c
tgr192.c
twofish.c
twofish_common.c
wp512.c
xcbc.c
xor.c
xts.c