Logo Search packages:      
Sourcecode: password-gorilla version File versions  Download package

sha1.h

/*    $NetBSD: sha1.h,v 1.2 2002/12/21 04:06:15 schmonz Exp $     */

/*
 * SHA-1 in C
 * By Steve Reid <steve@edmweb.com>
 * 100% Public Domain
 */

#ifndef _SYS_SHA1_H_
#define     _SYS_SHA1_H_

typedef unsigned int  my_int32_t;
typedef unsigned char my_char;

00015 typedef struct {
      my_int32_t state[5];
      my_int32_t count[2];  
      my_char    buffer[64];
} SHA1_CTX;
  
void  SHA1Transform(my_int32_t state[5], const my_char buffer[64]);
void  SHA1Init(SHA1_CTX *context);
void  SHA1Update(SHA1_CTX *context, const my_char *data, my_int32_t len);
void  SHA1Final(my_char digest[20], SHA1_CTX *context);

#endif /* _SYS_SHA1_H_ */

Generated by  Doxygen 1.6.0   Back to index