MLK-19365: crypto: gcm: Cache aligned auth_data
authorFranck LENORMAND <franck.lenormand@nxp.com>
Fri, 14 Sep 2018 08:31:57 +0000 (10:31 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:45:31 +0000 (02:45 +0300)
commitdd624114c50b1a8cb1bec091e20eaf2539695cde
treef27b5ba93dbd9a28ea71664ea78a3a5ca3a6b399
parent0cfefbbdfced45f361c1ee3595630b59f795bf58
MLK-19365: crypto: gcm: 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 03d7978eea76a53e5e964d67898e10d143ddb83d)
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
crypto/gcm.c