diff options
author | Hook, Gary <Gary.Hook@amd.com> | 2019-07-10 02:09:22 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-07-12 12:16:02 +0200 |
commit | 20e833dc36355ed642d00067641a679c618303fa (patch) | |
tree | ba09444dbe811a4de06861b5d7775f3b08096c7e /drivers/mfd | |
parent | crypto: crypto4xx - fix a potential double free in ppc4xx_trng_probe (diff) | |
download | linux-20e833dc36355ed642d00067641a679c618303fa.tar.xz linux-20e833dc36355ed642d00067641a679c618303fa.zip |
crypto: ccp - memset structure fields to zero before reuse
The AES GCM function reuses an 'op' data structure, which members
contain values that must be cleared for each (re)use.
This fix resolves a crypto self-test failure:
alg: aead: gcm-aes-ccp encryption test failed (wrong result) on test vector 2, cfg="two even aligned splits"
Fixes: 36cf515b9bbe ("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>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions