summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-04-27 15:54:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-04-27 15:54:57 +0000
commite298b0d5fb907dccdfb221b2ee383749e48808cc (patch)
treecbe71ca358c1d95b86bf8cb58543b6312ad4fd78 /include
parent9317ac921d2496374211fbee07b48153a979975c (diff)
Make the bit count u_int64_t instead of two u_int32_t. Adapted from
changes Niklas made to the md5 code long ago. OK hshoexer@
Diffstat (limited to 'include')
-rw-r--r--include/sha1.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sha1.h b/include/sha1.h
index 2c2b0d2541e..7fbeeb4fbea 100644
--- a/include/sha1.h
+++ b/include/sha1.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha1.h,v 1.17 2004/04/26 19:38:12 millert Exp $ */
+/* $OpenBSD: sha1.h,v 1.18 2004/04/27 15:54:56 millert Exp $ */
/*
* SHA-1 in C
@@ -15,17 +15,17 @@
typedef struct {
u_int32_t state[5];
- u_int32_t count[2];
+ u_int64_t count;
u_int8_t buffer[SHA1_BLOCK_LENGTH];
} SHA1_CTX;
#include <sys/cdefs.h>
__BEGIN_DECLS
+void SHA1Init(SHA1_CTX *);
void SHA1Transform(u_int32_t [5], const u_int8_t [SHA1_BLOCK_LENGTH])
__attribute__((__bounded__(__minbytes__,1,5)))
__attribute__((__bounded__(__minbytes__,2,SHA1_BLOCK_LENGTH)));
-void SHA1Init(SHA1_CTX *);
void SHA1Update(SHA1_CTX *, const u_int8_t *, unsigned int)
__attribute__((__bounded__(__string__,2,3)));
void SHA1Final(u_int8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *)