commit | 29b37f42127f7da511560a40ea74f5047da40c13 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Tue Jan 13 11:26:18 2009 +1100 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Jan 15 15:33:49 2009 +1100 |
tree | fa6cbeb329cc0d564511a3bd6f4d7172d468494b | |
parent | 5393f780277165f282a37ed82dd878159ec9dad5 [diff] |
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>