annotate 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
rev   line source
rlm@1 1 /* Crypto/Sha256.h -- SHA-256 Hash function
rlm@1 2 2008-10-04 : Igor Pavlov : Public domain */
rlm@1 3
rlm@1 4 #ifndef __CRYPTO_SHA256_H
rlm@1 5 #define __CRYPTO_SHA256_H
rlm@1 6
rlm@1 7 #include "Types.h"
rlm@1 8
rlm@1 9 #define SHA256_DIGEST_SIZE 32
rlm@1 10
rlm@1 11 typedef struct
rlm@1 12 {
rlm@1 13 UInt32 state[8];
rlm@1 14 UInt64 count;
rlm@1 15 Byte buffer[64];
rlm@1 16 } CSha256;
rlm@1 17
rlm@1 18 void Sha256_Init(CSha256 *p);
rlm@1 19 void Sha256_Update(CSha256 *p, const Byte *data, size_t size);
rlm@1 20 void Sha256_Final(CSha256 *p, Byte *digest);
rlm@1 21
rlm@1 22 #endif