Szilveszter Ördög
cbb9bf65ae
crypto: hash - Fix handling of unaligned buffers
...
The correct way to calculate the start of the aligned part of an
unaligned buffer is:
offset = ALIGN(offset, alignmask + 1);
However, crypto_hash_walk_done() has:
offset += alignmask - 1;
offset = ALIGN(offset, alignmask + 1);
which actually skips a whole block unless offset % (alignmask + 1) == 1.
This patch fixes the problem.
Signed-off-by: Szilveszter Ördög <slipszi@gmail.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2010-03-03 08:03:23 +08:00
..
2009-12-17 13:55:38 -07:00
2010-02-16 20:23:37 +08:00
2010-02-16 20:24:07 +08:00
2010-02-16 20:34:59 +08:00
2010-03-03 08:03:23 +08:00
2010-02-16 20:25:21 +08:00
2009-07-07 12:30:33 +08:00
2009-11-23 20:25:50 +08:00
2010-02-16 20:25:39 +08:00
2010-02-16 20:26:46 +08:00
2010-03-02 21:59:54 +08:00
2010-02-16 20:24:30 +08:00
2010-02-16 20:27:57 +08:00
2010-02-16 20:29:01 +08:00
2010-02-16 20:29:45 +08:00
2010-02-16 20:31:37 +08:00
2010-02-16 20:31:04 +08:00
2010-02-16 20:31:19 +08:00
2009-12-14 09:58:24 -08:00
2010-02-16 20:31:54 +08:00
2009-08-13 23:10:39 +10:00
2010-02-16 20:32:13 +08:00
2010-02-16 20:32:31 +08:00
2010-02-16 20:33:49 +08:00
2010-02-16 20:34:07 +08:00
2010-01-17 21:52:11 +11:00
2009-08-06 15:32:38 +10:00
2009-07-24 15:18:41 +08:00
2009-07-14 18:45:45 +08:00
2010-01-07 15:57:19 +11:00
2010-01-07 15:57:19 +11:00
2010-03-02 21:58:16 +08:00
2009-07-14 12:58:15 +08:00
2010-02-04 11:40:17 +11:00
2009-12-08 15:55:13 -08:00
2009-08-13 11:53:56 +10:00
2009-07-11 18:23:33 +08:00
2009-07-11 18:23:34 +08:00
2009-07-22 14:38:13 +08:00
2009-07-24 13:57:13 +08:00
2009-09-02 20:05:22 +10:00
2009-12-23 19:45:20 +08:00
2009-11-23 20:23:04 +08:00
2009-09-02 20:05:22 +10:00
2009-08-20 17:58:04 +10:00
2009-06-15 12:40:10 +02:00
2009-06-02 14:04:56 +10:00