Mercurial > vba-linux
view src/win32/7zip/7z/C/Sha256.h @ 2:3549bbe597ed
adding makefile.am
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:47 -0600 |
parents | f9f4f1b99eed |
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