diff options
author | Corentin Labbe <clabbe.montjoie@gmail.com> | 2022-06-01 19:36:08 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2022-06-09 18:40:58 +0200 |
commit | a4b5348bc3ab39d7e832899d7508f2f612cc33a5 (patch) | |
tree | de603602c00777517591ac26b477d1e7f4981c7b /sha256.c | |
parent | bb0181866125ac469c9b23d00998bab7a63b773a (diff) | |
download | nettle-a4b5348bc3ab39d7e832899d7508f2f612cc33a5.tar.gz |
Export sha256/sha512_compress functions
nettle export only md5_compress and sha1_compress.
Let's export also the compress functions for sha256 and sha512.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Diffstat (limited to 'sha256.c')
-rw-r--r-- | sha256.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -161,3 +161,9 @@ sha224_digest(struct sha256_ctx *ctx, sha256_write_digest(ctx, length, digest); sha224_init(ctx); } + +void +sha256_compress(uint32_t *state, const uint8_t *input) +{ + _nettle_sha256_compress(state, input, K); +} |