From c82c0b7e072491da4818e7de37411fbb2055fce1 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 16 Jun 2014 16:52:27 -0700 Subject: Remove SHA1 from LP64 in favor of libcrypto. Keep the symbols around on LP32 for binary compatibility. Bug: 11156955 Change-Id: I379a7e0fa3092e9a70daeafcbcb2aacfc314031a --- libc/upstream-netbsd/android/include/sys/sha1.h | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libc/upstream-netbsd/android/include/sys/sha1.h (limited to 'libc/upstream-netbsd/android/include') diff --git a/libc/upstream-netbsd/android/include/sys/sha1.h b/libc/upstream-netbsd/android/include/sys/sha1.h new file mode 100644 index 0000000..f7ada46 --- /dev/null +++ b/libc/upstream-netbsd/android/include/sys/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 + * 100% Public Domain + */ + +#ifndef _SYS_SHA1_H_ +#define _SYS_SHA1_H_ + +#include +#include + +#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_ */ -- cgit v1.1