diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2010-06-20 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:16:03 +0300 |
commit | e279500d76f1944ba26526f085030909a2c7ef49 (patch) | |
tree | 130291a48634b2918c6749be8ea360d15e1e202b /C | |
parent | 708873490ee36691d84cc06336aac87c5129f8a0 (diff) |
9.159.15
Diffstat (limited to 'C')
-rwxr-xr-x | C/7zVersion.h | 6 | ||||
-rwxr-xr-x | C/Sha256.c | 8 | ||||
-rwxr-xr-x | C/Sha256.h | 10 |
3 files changed, 10 insertions, 14 deletions
diff --git a/C/7zVersion.h b/C/7zVersion.h index 5faf2003..8f2d576f 100755 --- a/C/7zVersion.h +++ b/C/7zVersion.h @@ -1,7 +1,7 @@ #define MY_VER_MAJOR 9 -#define MY_VER_MINOR 14 +#define MY_VER_MINOR 15 #define MY_VER_BUILD 0 -#define MY_VERSION "9.14 beta" -#define MY_DATE "2010-06-04" +#define MY_VERSION "9.15 beta" +#define MY_DATE "2010-06-20" #define MY_COPYRIGHT ": Igor Pavlov : Public domain" #define MY_VERSION_COPYRIGHT_DATE MY_VERSION " " MY_COPYRIGHT " : " MY_DATE @@ -1,9 +1,9 @@ -/* Crypto/Sha256.c -- SHA-256 Hash function -2008-11-06 : Igor Pavlov : Public domain +/* Crypto/Sha256.c -- SHA-256 Hash +2010-06-11 : Igor Pavlov : Public domain This code is based on public domain code from Wei Dai's Crypto++ library. */ -#include "Sha256.h" #include "RotateDefs.h" +#include "Sha256.h" /* define it for speed optimization */ /* #define _SHA256_UNROLL */ @@ -71,7 +71,7 @@ void Sha256_Init(CSha256 *p) #endif -const UInt32 K[64] = { +static const UInt32 K[64] = { 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, @@ -1,14 +1,12 @@ /* Sha256.h -- SHA-256 Hash -2009-02-07 : Igor Pavlov : Public domain */ +2010-06-11 : Igor Pavlov : Public domain */ #ifndef __CRYPTO_SHA256_H #define __CRYPTO_SHA256_H #include "Types.h" -#ifdef __cplusplus -extern "C" { -#endif +EXTERN_C_BEGIN #define SHA256_DIGEST_SIZE 32 @@ -23,8 +21,6 @@ void Sha256_Init(CSha256 *p); void Sha256_Update(CSha256 *p, const Byte *data, size_t size); void Sha256_Final(CSha256 *p, Byte *digest); -#ifdef __cplusplus -} -#endif +EXTERN_C_END #endif |