blob: 65cf667cd77137503bb1bf9d4cfa8cb4146e8d91 [file] [log] [blame]
The Android Open Source Projectf6c38712009-03-03 19:28:47 -08001/*
2 * See "sha1.c" for author info.
3 */
4#ifndef _DALVIK_SHA1
5#define _DALVIK_SHA1
6
7typedef struct {
8 unsigned long state[5];
9 unsigned long count[2];
10 unsigned char buffer[64];
11} SHA1_CTX;
12
13#define HASHSIZE 20
14
15void SHA1Init(SHA1_CTX* context);
16void SHA1Update(SHA1_CTX* context, const unsigned char* data,
17 unsigned long len);
18void SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context);
19
20#endif /*_DALVIK_SHA1*/