crypto: caam - abstract ahash request double buffering
authorHoria Geantă <horia.geanta@nxp.com>
Fri, 10 Feb 2017 12:07:24 +0000 (14:07 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Feb 2017 05:23:43 +0000 (13:23 +0800)
commit0355d23d4034f42b28db19520bc8865e26053404
treee1479c0f6e3bafb1ae5f972d2011365cd0f29f10
parent87ec02e7409d787348c244039aa3536a812dfa8b
crypto: caam - abstract ahash request double buffering

caamhash uses double buffering for holding previous/current
and next chunks (data smaller than block size) to be hashed.

Add (inline) functions to abstract this mechanism.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c