mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
crypto: sha256 - Add sha224 support to sha256 library code
Add sha224 support to the lib/crypto/sha256 library code. This will allow us to replace both the sha256 and sha224 parts of crypto/sha256_generic.c when we remove the code duplication in further patches in this series. Suggested-by: Eric Biggers <ebiggers@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
01d3aee866
commit
7d2f5b0c43
2 changed files with 40 additions and 2 deletions
|
|
@ -26,4 +26,9 @@ extern int sha256_update(struct sha256_state *sctx, const u8 *input,
|
|||
unsigned int length);
|
||||
extern int sha256_final(struct sha256_state *sctx, u8 *hash);
|
||||
|
||||
extern int sha224_init(struct sha256_state *sctx);
|
||||
extern int sha224_update(struct sha256_state *sctx, const u8 *input,
|
||||
unsigned int length);
|
||||
extern int sha224_final(struct sha256_state *sctx, u8 *hash);
|
||||
|
||||
#endif /* SHA256_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue