crypto: ccp - Fill the result buffer only on digest, finup, and final ops

commit 0ee991be4c upstream.

Any change to the result buffer should only happen on final, finup
and digest operations. Changes to the buffer for update, import, export,
etc, are not allowed.

Fixes: 66d7b9f6175e ("crypto: testmgr - test misuse of result in ahash")
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Gary R Hook 2018-03-07 11:37:42 -06:00 • committed by Greg Kroah-Hartman
commit e573342971
2 changed files with 2 additions and 2 deletions