Home | History | Annotate | Download | only in Support
      1 /*
      2  * See "sha1.c" for author info.
      3  */
      4 #ifndef _DALVIK_SHA1
      5 #define _DALVIK_SHA1
      6 
      7 typedef 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 
     15 #if defined(__cplusplus)
     16 extern "C" {
     17 #endif
     18 
     19 void SHA1Init(SHA1_CTX* context);
     20 void SHA1Update(SHA1_CTX* context, const unsigned char* data,
     21     unsigned long len);
     22 void SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context);
     23 
     24 #if defined(__cplusplus)
     25 }
     26 #endif
     27 
     28 #endif /*_DALVIK_SHA1*/
     29