comparison src/win32/7zip/7z/C/Sha256.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
comparison
equal deleted inserted replaced
0:8ced16adf2e1 1:f9f4f1b99eed
1 /* Crypto/Sha256.h -- SHA-256 Hash function
2 2008-10-04 : Igor Pavlov : Public domain */
3
4 #ifndef __CRYPTO_SHA256_H
5 #define __CRYPTO_SHA256_H
6
7 #include "Types.h"
8
9 #define SHA256_DIGEST_SIZE 32
10
11 typedef struct
12 {
13 UInt32 state[8];
14 UInt64 count;
15 Byte buffer[64];
16 } CSha256;
17
18 void Sha256_Init(CSha256 *p);
19 void Sha256_Update(CSha256 *p, const Byte *data, size_t size);
20 void Sha256_Final(CSha256 *p, Byte *digest);
21
22 #endif