Skip to content
Snippets Groups Projects
Commit 481f34ae authored by Herbert Xu's avatar Herbert Xu
Browse files

[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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e236d4a8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment