https://github.com/git/git
Raw File
Tip revision: 7685227e973fce34340d3766b1775263751afa56 authored by Junio C Hamano on 28 March 2007, 22:58:09 UTC
GIT 1.5.1-rc3
Tip revision: 7685227
sha1.h
/*
 * SHA-1 implementation optimized for ARM
 *
 * Copyright:	(C) 2005 by Nicolas Pitre <nico@cam.org>
 * Created:	September 17, 2005
 */

#include <stdint.h>

typedef struct sha_context {
	uint64_t len;
	uint32_t hash[5];
	unsigned char buffer[64];
} SHA_CTX;

void SHA1_Init(SHA_CTX *c);
void SHA1_Update(SHA_CTX *c, const void *p, unsigned long n);
void SHA1_Final(unsigned char *hash, SHA_CTX *c);
back to top