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 /sha2.h | |
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 'sha2.h')
-rw-r--r-- | sha2.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -46,11 +46,13 @@ extern "C" { #define sha256_init nettle_sha256_init #define sha256_update nettle_sha256_update #define sha256_digest nettle_sha256_digest +#define sha256_compress nettle_sha256_compress #define sha384_init nettle_sha384_init #define sha384_digest nettle_sha384_digest #define sha512_init nettle_sha512_init #define sha512_update nettle_sha512_update #define sha512_digest nettle_sha512_digest +#define sha512_compress nettle_sha512_compress #define sha512_224_init nettle_sha512_224_init #define sha512_224_digest nettle_sha512_224_digest #define sha512_256_init nettle_sha512_256_init @@ -138,6 +140,8 @@ sha512_digest(struct sha512_ctx *ctx, size_t length, uint8_t *digest); +void +sha512_compress(uint64_t *state, const uint8_t *input); /* SHA384, a truncated SHA512 with different initial state. */ @@ -186,7 +190,10 @@ void sha512_256_digest(struct sha512_256_ctx *ctx, size_t length, uint8_t *digest); - + +void +sha256_compress(uint32_t *state, const uint8_t *input); + #ifdef __cplusplus } #endif |