aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-01-19 12:04:36 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-26 01:10:34 +1100
commit6657674b23b8a8458a3222ec3da2fd376c78ae79 (patch)
tree1ccc6f68efa9d6570a81337bcedede1cc5d575ed /include/crypto
parentcrypto: sha3-generic - simplify code (diff)
downloadlinux-dev-6657674b23b8a8458a3222ec3da2fd376c78ae79.tar.xz
linux-dev-6657674b23b8a8458a3222ec3da2fd376c78ae79.zip
crypto: sha3-generic - export init/update/final routines
To allow accelerated implementations to fall back to the generic routines, e.g., in contexts where a SIMD based implementation is not allowed to run, expose the generic SHA3 init/update/final routines to other modules. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/sha3.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/sha3.h b/include/crypto/sha3.h
index 1339dcdbc9b2..080f60c2e6b1 100644
--- a/include/crypto/sha3.h
+++ b/include/crypto/sha3.h
@@ -26,4 +26,9 @@ struct sha3_state {
u8 buf[SHA3_224_BLOCK_SIZE];
};
+int crypto_sha3_init(struct shash_desc *desc);
+int crypto_sha3_update(struct shash_desc *desc, const u8 *data,
+ unsigned int len);
+int crypto_sha3_final(struct shash_desc *desc, u8 *out);
+
#endif