OSDN Git Service

crypto: ux500/hash - Add empty export and import
authorKamil Konieczny <k.konieczny@partner.samsung.com>
Thu, 18 Jan 2018 18:34:02 +0000 (19:34 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Feb 2018 15:23:46 +0000 (23:23 +0800)
commit3c9418f23e3a160ee32a62c8a0d394d5515e929f
treefa0e395ce8d000b0bbfafc5790225e9f1e144826
parent378fe6fb0cfd6469554041977467414056fa15bc
crypto: ux500/hash - Add empty export and import

Crypto framework requires export/import in async hash. If driver do not
implement them, wrapper functions in framework will be used, and it will
cause error during ahash alg registration (unless one disables crypto
internal tests). To make change in framework and expose this requirement,
I will remove wrappers from crypto/ahash.c , but this can broke code which
depends on them. Add empty hash export and import, with the same behaviour
as in framework and expose this directly in driver. This can also prevent
OOPS when config option in Cryptographic API 'Disable run-time self tests'
will be enabled.

Signed-off-by: Kamil Konieczny <k.konieczny@partner.samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ux500/hash/hash_core.c