Files
linux-st/crypto
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
..
2010-02-16 20:24:07 +08:00
2010-02-16 20:26:46 +08:00
2010-02-16 20:29:01 +08:00
2010-02-16 20:29:45 +08:00
2010-02-16 20:31:19 +08:00
2010-02-16 20:33:49 +08:00
2009-07-24 15:18:41 +08:00
2010-03-02 21:58:16 +08:00
2009-08-13 11:53:56 +10:00