crypto/fsl: fsl_hash: Fix dcache issue in caam_hash_finish
authorGaurav Jain <gaurav.jain@nxp.com>
Wed, 11 May 2022 08:53:19 +0000 (14:23 +0530)
committerStefano Babic <sbabic@denx.de>
Fri, 20 May 2022 10:36:47 +0000 (12:36 +0200)
commit1919f58a8f371c19c340127b6a76859867e90247
tree89e5bcd5d90161358f045365061b548a6b6199dd
parentcad77280c31f6736e93bf18060080fee50cc9ee3
crypto/fsl: fsl_hash: Fix dcache issue in caam_hash_finish

HW accelerated hash operations are giving incorrect hash output.
so add flush and invalidate for input/output hash buffers.

Fixes: 94e3c8c4fd (crypto/fsl - Add progressive hashing support using hardware acceleration.)
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
drivers/crypto/fsl/fsl_hash.c