aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libutil/include
diff options
context:
space:
mode:
authorhpa <hpa>2005-01-20 22:44:13 +0000
committerhpa <hpa>2005-01-20 22:44:13 +0000
commitf7c564216b2d987a1b0b30602fd33536c7f4276e (patch)
tree448fe42d2433266bb75d74daad871adfe551bb81 /com32/libutil/include
parent46d256d6481ac0fc069968eadc816007a0a72427 (diff)
downloadsyslinux-f7c564216b2d987a1b0b30602fd33536c7f4276e.tar.gz
syslinux-f7c564216b2d987a1b0b30602fd33536c7f4276e.tar.xz
syslinux-f7c564216b2d987a1b0b30602fd33536c7f4276e.zip
SHA-1 support in libutil; beginnings of menu passwd support
Diffstat (limited to 'com32/libutil/include')
-rw-r--r--com32/libutil/include/sha1.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/com32/libutil/include/sha1.h b/com32/libutil/include/sha1.h
new file mode 100644
index 00000000..7f08ced3
--- /dev/null
+++ b/com32/libutil/include/sha1.h
@@ -0,0 +1,16 @@
+#ifndef LIBUTIL_SHA1_H
+#define LIBUTIL_SHA1_H
+
+typedef struct {
+ uint32_t state[5];
+ uint32_t count[2];
+ unsigned char buffer[64];
+} SHA1_CTX;
+
+void SHA1Transform(uint32_t state[5], unsigned char buffer[64]);
+void SHA1Init(SHA1_CTX* context);
+void SHA1Update(SHA1_CTX* context, unsigned char* data, uint32_t len); /*
+JHB */
+void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
+
+#endif /* LIBUTIL_SHA1_H */