diff options
author | Hook, Gary | 2019-07-10 00:09:22 +0000 |
---|---|---|
committer | Herbert Xu | 2019-07-12 18:16:02 +0800 |
commit | 20e833dc36355ed642d00067641a679c618303fa (patch) | |
tree | ba09444dbe811a4de06861b5d7775f3b08096c7e /init | |
parent | 95566aa75cd6b3b404502c06f66956b5481194b3 (diff) |
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 'init')
0 files changed, 0 insertions, 0 deletions