MLK-19365: crypto: ccm: Cache aligned auth_data
authorFranck LENORMAND <franck.lenormand@nxp.com>
Fri, 14 Sep 2018 08:59:52 +0000 (10:59 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:45:31 +0000 (02:45 +0300)
commit486222e88ce3bbc5dd7727e48901d1bf507d3892
tree37edc732be16c973f7f4f5e11742ca305445d70a
parentdd624114c50b1a8cb1bec091e20eaf2539695cde
MLK-19365: crypto: ccm: Cache aligned auth_data

Generic GCM is likely to end up using a hardware accelerator to do
part of the job. Allocating hash, iv and result in a contiguous memory
area increases the risk of dma mapping multiple ranges on the same
cacheline. Also having dma and cpu written data on the same cacheline
will cause coherence issues.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit 9d10c2f661c888dfee7f316c73b849a9cede2e1c)
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
crypto/ccm.c