diff options
author | Niels Möller <nisse@lysator.liu.se> | 2010-03-24 22:11:16 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2010-03-24 22:11:16 +0100 |
commit | 343b4bad60c23c036cdf9cf420d34d373d9d1b2f (patch) | |
tree | 6264fc3a8059395583d26a1ec17d5693c6edf7f9 /sha.h | |
parent | 97aca948dbd325ecae1a34e9928c9861ea958e57 (diff) | |
download | nettle-343b4bad60c23c036cdf9cf420d34d373d9d1b2f.tar.gz |
* Makefile.in (nettle_SOURCES): Added sha256-compress.c.
* sha256.c: Reorganized to use _nettle_sha256_compress.
* sha256-compress.c (_nettle_sha256_compress): Compression
function extracted from sha256.c to a new file.
Rev: nettle/ChangeLog:1.56
Rev: nettle/Makefile.in:1.17
Rev: nettle/sha.h:1.3
Rev: nettle/sha256-compress.c:1.1
Rev: nettle/sha256.c:1.4
Diffstat (limited to 'sha.h')
-rw-r--r-- | sha.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -106,6 +106,12 @@ sha256_digest(struct sha256_ctx *ctx, unsigned length, uint8_t *digest); +/* Internal compression function. STATE points to 8 uint32_t words, + DATA points to 64 bytes of input data, possibly unaligned, and K + points to the table of constants. */ +void +_nettle_sha256_compress(uint32_t *state, const uint8_t *data, const uint32_t *k); + /* SHA512 */ #define SHA512_DIGEST_SIZE 64 |