diff options
author | tanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a> | 2012-03-01 03:38:55 +0000 |
---|---|---|
committer | tanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a> | 2012-03-01 03:38:55 +0000 |
commit | f3b789787b93945c974e2cc517b7dc352b28354e (patch) | |
tree | 964ce5b7a74e21ce9056d974270ae7ba8d3389cd /sha1.h | |
parent | b35e562e2d80bc47a51b53ec92a305eb9a3383b4 (diff) | |
download | src-f3b789787b93945c974e2cc517b7dc352b28354e.tar.gz |
Merge branch chandlerc_dev
git-svn-id: http://smhasher.googlecode.com/svn/trunk@144 77a7d1d3-4c08-bdc2-d393-d5859734b01a
Diffstat (limited to 'sha1.h')
-rw-r--r-- | sha1.h | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -1,21 +1,21 @@ -/* 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]);
-
+/* 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 );
\ No newline at end of file |