summaryrefslogtreecommitdiff
path: root/sha.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2004-02-06 09:56:33 +0100
committerNiels Möller <nisse@lysator.liu.se>2004-02-06 09:56:33 +0100
commit45613b437e22a5ac714df528cb3ef593d9de1dd2 (patch)
treeeb609de52cfe32efc5c9b5b12a44d1fbfd296990 /sha.h
parent5c7672bd83cd2be827c46a8ac528608d106ef4c5 (diff)
downloadnettle-45613b437e22a5ac714df528cb3ef593d9de1dd2.tar.gz
* sha1.c (sha1_transform): Function renamed to sha1_compress, and
moved to... * sha1-compress.c: ... New file. Rev: src/nettle/sha.h:1.5 Rev: src/nettle/sha1-compress.c:1.1 Rev: src/nettle/sha1.c:1.9
Diffstat (limited to 'sha.h')
-rw-r--r--sha.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sha.h b/sha.h
index 81e1571e..6dcb292c 100644
--- a/sha.h
+++ b/sha.h
@@ -65,6 +65,11 @@ sha1_digest(struct sha1_ctx *ctx,
unsigned length,
uint8_t *digest);
+/* Internal compression function. STATE points to 5 uint32_t words,
+ and DATA points to 16 uint32_t words which are destroyed. */
+void
+_nettle_sha1_compress(uint32_t *state, uint32_t *data);
+
/* SHA256 */
#define SHA256_DIGEST_SIZE 32