]> git.karo-electronics.de Git - linux-beck.git/commit
crypto: nx - fix nx-aes-gcm verification
authorjmlatten@linux.vnet.ibm.com <jmlatten@linux.vnet.ibm.com>
Wed, 14 Aug 2013 22:17:57 +0000 (17:17 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 21 Aug 2013 11:08:38 +0000 (21:08 +1000)
commitb4eba0ca341fb6ad0199ab3f2244aa7e0c4cb34d
treed2b9cc14eb30f6bcdf1b139e4ae382984209e9e6
parentd4d8edf88544e4df694d32594c3dde63f82be960
crypto: nx - fix nx-aes-gcm verification

This patch fixes a bug in the nx-aes-gcm implementation.
Corrected the code so that the authtag is always verified after
decrypting and not just when there is associated data included.
Also, corrected the code to retrieve the input authtag from src
instead of dst.

Reviewed-by: Fionnuala Gunter <fin@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-aes-gcm.c