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-04-21 10:19:34 +08:00
2008-04-21 10:19:34 +08:00
2008-04-21 10:19:34 +08:00
2007-11-02 08:47:06 +01:00
2008-12-25 11:02:07 +11:00
2008-06-02 15:46:51 +10:00
2008-04-21 10:19:34 +08:00
2008-08-29 15:50:02 +10:00
2008-01-11 08:16:56 +11:00
2009-03-04 14:43:52 +08:00
2009-03-04 15:42:15 +08:00
2008-04-21 10:19:34 +08:00
2009-02-17 20:00:11 +08:00
2008-04-21 10:19:34 +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
2007-10-10 16:55:38 -07:00
2008-04-21 10:19:34 +08: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
2008-04-21 10:19:34 +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-04-21 10:19:34 +08:00
2008-12-25 11:02:22 +11:00
2007-07-13 08:06:14 -07:00
2008-03-06 18:56:19 +08:00