Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.522 kb
/* public api for steve reid's public domain SHA-1 implementation */
/* this file is in the public domain */
#pragma once
#include "Platform.h"
struct SHA1_CTX
{
uint32_t state[5];
uint32_t count[2];
uint8_t buffer[64];
};
#define SHA1_DIGEST_SIZE 20
void SHA1_Init(SHA1_CTX* context);
void SHA1_Update(SHA1_CTX* context, const uint8_t* data, const size_t len);
void SHA1_Final(SHA1_CTX* context, uint8_t digest[SHA1_DIGEST_SIZE]);
void sha1_32a ( const void * key, int len, uint32_t seed, void * out );
Jump to Line
Something went wrong with that request. Please try again.