]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: bfin_crc - Add empty hash export and import
authorKamil Konieczny <k.konieczny@partner.samsung.com>
Thu, 18 Jan 2018 18:34:03 +0000 (19:34 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Feb 2018 15:23:46 +0000 (23:23 +0800)
commitb4b6ee1d6af2837486e77f876e43146b482aa3b4
tree58399a5110336f8ad8ee6b78ca3bc7c8f2b105ad
parent7015f22f4c6b17718cd68e933299f48fbd1b76b6
crypto: bfin_crc - Add empty hash 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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bfin_crc.c