X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=ppc%2Fsha1.h;h=c405f734c2050e2e4ad3469d087368a29a98d27e;hb=b43b73666be32ecdc27384d67dc88e4b4869efa1;hp=c3c51aa4d487f2e85c02b0257c1f0b57d6158d76;hpb=9656153b87d47b34986f2d77eef9199c24cbf9f6;p=git.git diff --git a/ppc/sha1.h b/ppc/sha1.h index c3c51aa4d..c405f734c 100644 --- a/ppc/sha1.h +++ b/ppc/sha1.h @@ -5,7 +5,7 @@ */ #include -typedef struct sha_context { +typedef struct { uint32_t hash[5]; uint32_t cnt; uint64_t len; @@ -13,8 +13,13 @@ typedef struct sha_context { unsigned char b[64]; uint64_t l[8]; } buf; -} SHA_CTX; +} ppc_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); +int ppc_SHA1_Init(ppc_SHA_CTX *c); +int ppc_SHA1_Update(ppc_SHA_CTX *c, const void *p, unsigned long n); +int ppc_SHA1_Final(unsigned char *hash, ppc_SHA_CTX *c); + +#define git_SHA_CTX ppc_SHA_CTX +#define git_SHA1_Init ppc_SHA1_Init +#define git_SHA1_Update ppc_SHA1_Update +#define git_SHA1_Final ppc_SHA1_Final