linux/crypto
Herbert Xu d315a0e09f crypto: hash - Fix handling of sg entry that crosses page boundary
A quirk that we've always supported is having an sg entry that's
bigger than a page, or more generally an sg entry that crosses
page boundaries.  Even though it would be better to explicitly have
to sg entries for this, we need to support it for the existing users,
in particular, IPsec.

The new ahash sg walking code did try to handle this, but there was
a bug where we didn't increment the page so kept on walking on the
first page over an dover again.

This patch fixes it.

Tested-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2009-05-31 23:09:22 +10:00
..
async_tx dmaengine: allow dma support for async_tx to be toggled 2009-03-25 09:13:25 -07:00
ablkcipher.c crypto: skcipher - Avoid infinite loop when cipher fails selftest 2009-02-18 21:20:06 +08:00
aead.c crypto: aead - Avoid infinite loop when nivaead fails selftest 2009-02-18 21:21:24 +08:00
aes_generic.c
ahash.c crypto: hash - Fix handling of sg entry that crosses page boundary 2009-05-31 23:09:22 +10:00
algapi.c crypto: api - Fix algorithm test race that broke aead initialisation 2009-01-28 14:09:59 +11:00
algboss.c crypto: testmgr - Test skciphers with no IVs 2009-02-18 21:41:29 +08:00
ansi_cprng.c crypto: ansi_cprng - Panic on CPRNG test failure when in FIPS mode 2009-02-18 16:48:07 +08:00
anubis.c
api.c crypto: api - Fix algorithm module auto-loading 2009-04-21 13:27:16 +08:00
arc4.c
authenc.c crypto: authenc - Fix zero-length IV crash 2009-01-15 15:33:49 +11:00
blkcipher.c crypto: skcipher - Avoid infinite loop when cipher fails selftest 2009-02-18 21:20:06 +08:00
blowfish.c
camellia.c
cast5.c
cast6.c
cbc.c
ccm.c crypto: ccm - Fix handling of null assoc data 2009-01-27 17:11:15 +11:00
chainiv.c crypto: chainiv - Use kcrypto_wq instead of keventd_wq 2009-02-19 14:44:02 +08:00
cipher.c
compress.c
crc32c.c
cryptd.c crypto: cryptd - Per-CPU thread implementation based on kcrypto_wq 2009-02-19 14:42:19 +08:00
crypto_null.c
crypto_wq.c crypto: api - Use dedicated workqueue for crypto subsystem 2009-02-19 14:33:40 +08:00
ctr.c
cts.c
deflate.c
des_generic.c
digest.c
ecb.c Convert ERR_PTR(PTR_ERR(p)) instances to ERR_CAST(p) 2008-02-07 08:42:26 -08:00
eseqiv.c crypto: eseqiv - Fix IV generation for sync algorithms 2009-04-15 20:45:03 +08:00
fcrypt.c
fips.c
gcm.c
gf128mul.c crypto: Fix dead links 2009-03-04 14:43:52 +08:00
hash.c
hmac.c
internal.h crypto: api - Fix crypto_alloc_tfm/create_create_tfm return convention 2009-02-18 16:56:59 +08:00
Kconfig crypto: testmgr - add zlib test 2009-03-04 15:42:15 +08:00
khazad.c
krng.c
lrw.c crypto: lrw - Fix big endian support 2009-02-17 20:00:11 +08:00
lzo.c
Makefile crypto: zlib - New zlib crypto module, using pcomp 2009-03-04 15:16:19 +08:00
md4.c crypto: md4 - Switch to shash 2008-12-25 11:02:16 +11:00
md5.c
michael_mic.c
pcbc.c
pcompress.c crypto: compress - Add pcomp interface 2009-03-04 15:05:33 +08:00
proc.c
ripemd.h
rmd128.c
rmd160.c
rmd256.c
rmd320.c
rng.c
salsa20_generic.c
scatterwalk.c crypto: scatterwalk - Avoid flush_dcache_page on slab pages 2009-02-09 14:30:25 +11:00
seed.c
seqiv.c
serpent.c
sha1_generic.c
sha256_generic.c crypto: Fix dead links 2009-03-04 14:43:52 +08:00
sha512_generic.c
shash.c crypto: shash - Fix unaligned calculation with short length 2009-03-27 13:03:51 +08:00
tcrypt.c crypto: testmgr - add zlib test 2009-03-04 15:42:15 +08:00
tcrypt.h
tea.c
testmgr.c crypto: testmgr - add zlib test 2009-03-04 15:42:15 +08:00
testmgr.h crypto: testmgr - add zlib test 2009-03-04 15:42:15 +08:00
tgr192.c
twofish_common.c
twofish.c
wp512.c
xcbc.c
xor.c md: move lots of #include lines out of .h files and into .c 2009-03-31 14:33:13 +11:00
xts.c
zlib.c crypto: zlib - New zlib crypto module, using pcomp 2009-03-04 15:16:19 +08:00