]> git.ipfire.org Git - thirdparty/git.git/blame - arm/sha1.h
use test number as port number
[thirdparty/git.git] / arm / sha1.h
CommitLineData
7c6ef2f2
NP
1/*
2 * SHA-1 implementation optimized for ARM
3 *
4 * Copyright: (C) 2005 by Nicolas Pitre <nico@cam.org>
5 * Created: September 17, 2005
6 */
7
8#include <stdint.h>
9
9126f009 10typedef struct {
7c6ef2f2
NP
11 uint64_t len;
12 uint32_t hash[5];
13 unsigned char buffer[64];
9126f009 14} arm_SHA_CTX;
7c6ef2f2 15
9126f009
NP
16void arm_SHA1_Init(arm_SHA_CTX *c);
17void arm_SHA1_Update(arm_SHA_CTX *c, const void *p, unsigned long n);
18void arm_SHA1_Final(unsigned char *hash, arm_SHA_CTX *c);
19
20#define git_SHA_CTX arm_SHA_CTX
21#define git_SHA1_Init arm_SHA1_Init
22#define git_SHA1_Update arm_SHA1_Update
23#define git_SHA1_Final arm_SHA1_Final