MLK-12312: CAAM hash algorithms fail registration during initialization
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 18 Oct 2015 16:51:25 +0000 (17:51 +0100)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:57 +0000 (14:49 -0500)
commit6cccb526fd197cb527ec61742396573255ed4c3d
tree63a0f92eedc2803d0cd756be22ad759d7087e39a
parentfe7d25e649d9cddd1e46ce9412607cd8291448ed
MLK-12312: CAAM hash algorithms fail registration during initialization

Fix cherry-picked from 5ec908319ab53072d3a2188e62ed2e5d7b846951

crypto: caam - only export the state we really need to export

Avoid exporting lots of state by only exporting what we really require,
which is the buffer containing the set of pending bytes to be hashed,
number of pending bytes, the context buffer, and the function pointer
state.  This reduces down the exported state size to 216 bytes from
576 bytes.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c