Mercurial > vba-clojure
view 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 |
line wrap: on
line source
1 /* Crypto/Sha256.h -- SHA-256 Hash function2 2008-10-04 : Igor Pavlov : Public domain */4 #ifndef __CRYPTO_SHA256_H5 #define __CRYPTO_SHA256_H7 #include "Types.h"9 #define SHA256_DIGEST_SIZE 3211 typedef struct12 {13 UInt32 state[8];14 UInt64 count;15 Byte buffer[64];16 } CSha256;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);22 #endif