linux-stable-rt/include/crypto
Herbert Xu 8ec970d856 [CRYPTO] api: Fix scatterwalk_sg_chain
When I backed out of using the generic sg chaining (as it isn't currently
portable) and introduced scatterwalk_sg_chain/scatterwalk_sg_next I left
out the sg_is_last check in the latter.  This causes it to potentially
dereference beyond the end of the sg array.

As most uses of scatterwalk_sg_next are bound by an overall length, this
only affected the chaining code in authenc and eseqiv. Thanks to Patrick
McHardy for identifying this problem.

This patch also clears the "last" bit on the head of the chained list as
it's no longer last.  This also went missing in scatterwalk_sg_chain and
is present in sg_chain.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2008-05-01 18:22:28 +08:00
..
internal [CRYPTO] skcipher: Fix section mismatches 2008-03-08 20:29:43 +08:00
aead.h
aes.h [CRYPTO] aes: Export generic setkey 2008-04-21 10:19:34 +08:00
algapi.h
authenc.h
b128ops.h
ctr.h
des.h
gf128mul.h
scatterwalk.h [CRYPTO] api: Fix scatterwalk_sg_chain 2008-05-01 18:22:28 +08:00
sha.h
skcipher.h
twofish.h