Revision f0fff36e82bc8cc12be58a0585106ee720c4dc98 authored by J. Bruce Fields on 30 January 2006, 01:40:50 UTC, committed by Junio C Hamano on 30 January 2006, 01:54:43 UTC
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 075dd8e
sha1.h
/*
* SHA-1 implementation.
*
* Copyright (C) 2005 Paul Mackerras <paulus@samba.org>
*/
#include <stdint.h>
typedef struct sha_context {
uint32_t hash[5];
uint32_t cnt;
uint64_t len;
union {
unsigned char b[64];
uint64_t l[8];
} buf;
} SHA_CTX;
int SHA1_Init(SHA_CTX *c);
int SHA1_Update(SHA_CTX *c, const void *p, unsigned long n);
int SHA1_Final(unsigned char *hash, SHA_CTX *c);
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...