diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/7zip/7z/C/Sha256.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,22 @@
     1.4 +/* Crypto/Sha256.h -- SHA-256 Hash function
     1.5 +2008-10-04 : Igor Pavlov : Public domain */
     1.6 +
     1.7 +#ifndef __CRYPTO_SHA256_H
     1.8 +#define __CRYPTO_SHA256_H
     1.9 +
    1.10 +#include "Types.h"
    1.11 +
    1.12 +#define SHA256_DIGEST_SIZE 32
    1.13 +
    1.14 +typedef struct
    1.15 +{
    1.16 +  UInt32 state[8];
    1.17 +  UInt64 count;
    1.18 +  Byte buffer[64];
    1.19 +} CSha256;
    1.20 +
    1.21 +void Sha256_Init(CSha256 *p);
    1.22 +void Sha256_Update(CSha256 *p, const Byte *data, size_t size);
    1.23 +void Sha256_Final(CSha256 *p, Byte *digest);
    1.24 +
    1.25 +#endif