summaryrefslogtreecommitdiff
path: root/crypto/rmd256.c
diff options
context:
space:
mode:
authorSzilveszter Ördög <slipszi@gmail.com>2010-03-03 08:03:23 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2010-03-03 08:03:23 +0800
commitba91796957fbf00d5e0030974b89a00935e1e863 (patch)
tree0a5707fdd62b9e8fe2e491c57f6d5fcb40e43111 /crypto/rmd256.c
parent80878e51c9804ae17cf6f383db3fb599ddc9750c (diff)
downloadlinux-crypto-ba91796957fbf00d5e0030974b89a00935e1e863.tar.gz
linux-crypto-ba91796957fbf00d5e0030974b89a00935e1e863.zip
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>
Diffstat (limited to 'crypto/rmd256.c')
0 files changed, 0 insertions, 0 deletions