summaryrefslogtreecommitdiffstats
path: root/9/platforms/android-14/arch-x86/usr/include/sha1.h
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-09-06 18:37:46 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2013-09-06 19:04:40 +0800
commit6986c6e7f06bb3bdedfc3bb08694da9b1227048c (patch)
tree5c0f01f1f54d9040100858182232c1fb4134b58f /9/platforms/android-14/arch-x86/usr/include/sha1.h
parent30ee84f92cb832c789366c516fcadb718ccc25e8 (diff)
downloadprebuilts_ndk-6986c6e7f06bb3bdedfc3bb08694da9b1227048c.zip
prebuilts_ndk-6986c6e7f06bb3bdedfc3bb08694da9b1227048c.tar.gz
prebuilts_ndk-6986c6e7f06bb3bdedfc3bb08694da9b1227048c.tar.bz2
Add NDK r9 part 1/2: platforms/
Change-Id: Ie572e90ffda7f982d931dda1a9f5a0c68953a762
Diffstat (limited to '9/platforms/android-14/arch-x86/usr/include/sha1.h')
-rw-r--r--9/platforms/android-14/arch-x86/usr/include/sha1.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/9/platforms/android-14/arch-x86/usr/include/sha1.h b/9/platforms/android-14/arch-x86/usr/include/sha1.h
new file mode 100644
index 0000000..f7ada46
--- /dev/null
+++ b/9/platforms/android-14/arch-x86/usr/include/sha1.h
@@ -0,0 +1,31 @@
+/* $NetBSD: sha1.h,v 1.13 2005/12/26 18:41:36 perry Exp $ */
+
+/*
+ * SHA-1 in C
+ * By Steve Reid <steve@edmweb.com>
+ * 100% Public Domain
+ */
+
+#ifndef _SYS_SHA1_H_
+#define _SYS_SHA1_H_
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+
+#define SHA1_DIGEST_LENGTH 20
+#define SHA1_DIGEST_STRING_LENGTH 41
+
+typedef struct {
+ uint32_t state[5];
+ uint32_t count[2];
+ u_char buffer[64];
+} SHA1_CTX;
+
+__BEGIN_DECLS
+void SHA1Transform(uint32_t[5], const u_char[64]);
+void SHA1Init(SHA1_CTX *);
+void SHA1Update(SHA1_CTX *, const u_char *, u_int);
+void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
+__END_DECLS
+
+#endif /* _SYS_SHA1_H_ */