]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
crypto: caam - only export the state we really need to export
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 18 Oct 2015 16:51:25 +0000 (17:51 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 14:11:11 +0000 (22:11 +0800)
commit5ec908319ab53072d3a2188e62ed2e5d7b846951
tree62a518ca85620fce86224cbd434edff17cb079b1
parentc7556ff7e3e4f2747583bcc787f12ec9460ec3a6
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