summaryrefslogtreecommitdiff
path: root/sha.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2010-03-24 22:11:16 +0100
committerNiels Möller <nisse@lysator.liu.se>2010-03-24 22:11:16 +0100
commit343b4bad60c23c036cdf9cf420d34d373d9d1b2f (patch)
tree6264fc3a8059395583d26a1ec17d5693c6edf7f9 /sha.h
parent97aca948dbd325ecae1a34e9928c9861ea958e57 (diff)
downloadnettle-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sha.h b/sha.h
index 5040e705..c95dffda 100644
--- a/sha.h
+++ b/sha.h
@@ -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