Yehuda Sadeh f4f689933c crypto: shash - Fix unaligned calculation with short length
When the total length is shorter than the calculated number of unaligned bytes, the call to shash->update breaks. For example, calling crc32c on unaligned buffer with length of 1 can result in a system crash.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2009-03-27 13:03:51 +08:00
..
2008-12-25 11:05:13 +11:00
2008-12-25 11:02:07 +11:00
2009-03-04 14:43:52 +08:00
2009-03-04 15:42:15 +08:00
2009-02-17 20:00:11 +08:00
2008-12-25 11:02:16 +11:00
2008-12-25 11:02:18 +11:00
2008-12-25 11:02:09 +11:00
2008-12-25 11:02:10 +11:00
2008-12-25 11:02:12 +11:00
2008-12-25 11:02:13 +11:00
2008-12-25 11:02:15 +11:00
2009-03-04 14:43:52 +08:00
2009-03-04 15:42:15 +08:00
2009-03-04 15:42:15 +08:00
2009-03-04 15:42:15 +08:00
2008-12-25 11:02:21 +11:00
2008-12-25 11:02:22 +11:00