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>
This commit is contained in:

committed by
Herbert Xu

parent
beeb504adf
commit
6657674b23
@@ -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
|
||||
|
Reference in New Issue
Block a user