summaryrefslogtreecommitdiff
path: root/include/crypto/sha3.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-01-19 15:04:36 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-25 17:10:34 +0300
commit6657674b23b8a8458a3222ec3da2fd376c78ae79 (patch)
tree1ccc6f68efa9d6570a81337bcedede1cc5d575ed /include/crypto/sha3.h
parentbeeb504adf3d08c0e916f43259e8e2ad6bdd30ee (diff)
downloadlinux-6657674b23b8a8458a3222ec3da2fd376c78ae79.tar.xz
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/sha3.h')
-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