]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - print debugging hex dumps after unmapping
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 16 May 2019 14:24:42 +0000 (16:24 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 May 2019 06:13:09 +0000 (14:13 +0800)
commit65a42ee6480a2cbab24b5186a3e5e3206553e898
tree645109f35310e2b6b4a06f0d22a1c741b422dcac
parentd7288f54f13dd9cbda0c8912ec856edbbaf7b42f
crypto: caam - print debugging hex dumps after unmapping

For encryption the destination pointer was still mapped, so the hex dump
may be wrong. The IV still contained the input IV while printing instead
of the output IV as intended.

For decryption the destination pointer was still mapped, so the hex dump
may be wrong. The IV dump was correct.

Do the hex dumps consistenly after the buffers have been unmapped and
in case of IV copied to their final destination.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c