diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-01-13 11:26:18 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-01-15 15:33:49 +1100 |
commit | d7ddde82c6d0cf9c5fa91f39038f76fbac70c20c (patch) | |
tree | 63ca09908003bf761434a817a111df14ecff7af7 /crypto/sha512_generic.c | |
parent | e25efd82817526daf0f21493f6a0b08f6c3e018a (diff) | |
download | linux-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/sha512_generic.c')
0 files changed, 0 insertions, 0 deletions