summaryrefslogtreecommitdiff
path: root/lib/sha1.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-10-17 12:55:00 +0000
committerSimon Josefsson <simon@josefsson.org>2005-10-17 12:55:00 +0000
commit8523c7381469c7279a26fd88f4f3be20d43c4e1d (patch)
tree5c0b826c01450d2e316d19c9929b7e12ce34d529 /lib/sha1.h
parent24092f4d7960804aa7c0e121248a2c8e02f99678 (diff)
downloadgnulib-8523c7381469c7279a26fd88f4f3be20d43c4e1d.tar.gz
Separate sha1 from md5. Use stdint.h in both modules.
Diffstat (limited to 'lib/sha1.h')
-rw-r--r--lib/sha1.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/sha1.h b/lib/sha1.h
index bb48855b8d..a3ab132e81 100644
--- a/lib/sha1.h
+++ b/lib/sha1.h
@@ -20,20 +20,20 @@
# define SHA1_H 1
# include <stdio.h>
-# include "md5.h"
+# include <stdint.h>
/* Structure to save state of computation between the single steps. */
struct sha1_ctx
{
- md5_uint32 A;
- md5_uint32 B;
- md5_uint32 C;
- md5_uint32 D;
- md5_uint32 E;
-
- md5_uint32 total[2];
- md5_uint32 buflen;
- char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32))));
+ uint32_t A;
+ uint32_t B;
+ uint32_t C;
+ uint32_t D;
+ uint32_t E;
+
+ uint32_t total[2];
+ uint32_t buflen;
+ char buffer[128] __attribute__ ((__aligned__ (__alignof__ (uint32_t))));
};