summaryrefslogtreecommitdiff
path: root/crypto/blkcipher.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-01-13 11:26:18 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2009-01-15 15:33:49 +1100
commitd7ddde82c6d0cf9c5fa91f39038f76fbac70c20c (patch)
tree63ca09908003bf761434a817a111df14ecff7af7 /crypto/blkcipher.c
parente25efd82817526daf0f21493f6a0b08f6c3e018a (diff)
downloadlinux-crypto-d7ddde82c6d0cf9c5fa91f39038f76fbac70c20c.tar.gz
linux-crypto-d7ddde82c6d0cf9c5fa91f39038f76fbac70c20c.zip
crypto: authenc - Fix zero-length IV crash
As it is if an algorithm with a zero-length IV is used (e.g., NULL encryption) with authenc, authenc may generate an SG entry of length zero, which will trigger a BUG check in the hash layer. This patch fixes it by skipping the IV SG generation if the IV size is zero. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/blkcipher.c')
0 files changed, 0 insertions, 0 deletions