crypto: caam - map src buffer before access
authorYashpal Dutta <yashpal.dutta@freescale.com>
Wed, 11 Sep 2013 19:24:06 +0000 (19:24 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 23 Sep 2013 20:02:20 +0000 (06:02 +1000)
commit82ad6bcadeb87c2a289e714a680eadba294294df
treed63f1702bdda17af9487f4621b15fb4b0ea9fa6b
parent1005bccd7a4a6345d995449b77cb1ba748ff9a28
crypto: caam - map src buffer before access

KMap the buffers before copying trailing bytes during hmac into a session
temporary buffer. This is required if pinned buffer from user-space is send
during hmac and is safe even if hmac request is generated from within kernel.

Signed-off-by: Yashpal Dutta <yashpal.dutta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/sg_sw_sec4.h