summaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorHerbert Xu2007-12-04 10:04:21 +0100
committerHerbert Xu2008-01-10 22:16:30 +0100
commit481f34ae752ac74c4cbd88a9954dd4ed10e84f81 (patch)
tree1c158f9600b189220fb5943b6263750367d10265 /crypto/tcrypt.c
parent[CRYPTO] authenc: Move enckeylen into key itself (diff)
downloadkernel-qcow2-linux-481f34ae752ac74c4cbd88a9954dd4ed10e84f81.tar.gz
kernel-qcow2-linux-481f34ae752ac74c4cbd88a9954dd4ed10e84f81.tar.xz
kernel-qcow2-linux-481f34ae752ac74c4cbd88a9954dd4ed10e84f81.zip
[CRYPTO] authenc: Fix hash verification
The previous code incorrectly included the hash in the verification which also meant that we'd crash and burn when it comes to actually verifying the hash since we'd go past the end of the SG list. This patch fixes that by subtracting authsize from cryptlen at the start. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
0 files changed, 0 insertions, 0 deletions