diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-01-19 15:04:36 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-01-25 17:10:34 +0300 |
commit | 6657674b23b8a8458a3222ec3da2fd376c78ae79 (patch) | |
tree | 1ccc6f68efa9d6570a81337bcedede1cc5d575ed /include | |
parent | beeb504adf3d08c0e916f43259e8e2ad6bdd30ee (diff) | |
download | linux-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')
-rw-r--r-- | include/crypto/sha3.h | 5 |
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 |