MA-12421 Fix CAAM not work on Android Things
authorJi Luo <ji.luo@nxp.com>
Fri, 5 Jul 2019 01:18:36 +0000 (09:18 +0800)
committerfaqiang.zhu <faqiang.zhu@nxp.com>
Mon, 15 Jul 2019 06:00:53 +0000 (14:00 +0800)
commitb3d3a85b9a23d3da3e2133301d5b58fb375946e5
treeadc1006b80423e6f200ff3077f26051b6294bbbe
parent67e01938e7c64fcfc3072213728d0b97178b13c0
MA-12421 Fix CAAM not work on Android Things

Blob buffer size is 48 bytes larger than the plain text buffer,
set correct range when flush the dcache. Also use cache aligned
buffer for the blob/plain_text to avoid failure in CAAM.

Change-Id: I8f311b9d21fc7d26d60e9ba23dfb239d2582cedf
Signed-off-by: Ji Luo <ji.luo@nxp.com>
drivers/crypto/fsl_caam.c
drivers/crypto/fsl_caam_internal.h