]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccp - Ignore tag length when decrypting GCM ciphertext
authorGary R Hook <gary.hook@amd.com>
Tue, 30 Jul 2019 16:05:26 +0000 (16:05 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Aug 2019 04:36:36 +0000 (14:36 +1000)
commit3deb52e9911f438f6ddfd3589676687b961270a6
tree964f9ecafc8f0e6b6f9b0b09c083e6e14e44afb7
parent3ccaa9fe4352d326d84e0810c605e583734d497d
crypto: ccp - Ignore tag length when decrypting GCM ciphertext

AES GCM input buffers for decryption contain AAD+CTEXT+TAG. Only
decrypt the ciphertext, and use the tag for comparison.

Fixes: d38a462c2b6b5 ("crypto: ccp - Enable support for AES GCM on v5 CCPs")
Cc: <stable@vger.kernel.org>
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-ops.c