mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 16:07:09 -06:00
4.20
This commit is contained in:
committed by
Kornel Lesiński
parent
8c1b5c7b7e
commit
3c510ba80b
@@ -1,4 +1,4 @@
|
||||
// Crypto/SHA/SHA256.h
|
||||
// Crypto/SHA256.h
|
||||
|
||||
#ifndef __CRYPTO_SHA256_H
|
||||
#define __CRYPTO_SHA256_H
|
||||
@@ -10,19 +10,19 @@ namespace NSHA256 {
|
||||
|
||||
class SHA256
|
||||
{
|
||||
static const UINT32 K[64];
|
||||
static const UInt32 K[64];
|
||||
|
||||
UINT32 m_digest[8];
|
||||
UINT64 m_count;
|
||||
BYTE _buffer[64];
|
||||
static void Transform(UINT32 *digest, const UINT32 *data);
|
||||
UInt32 m_digest[8];
|
||||
UInt64 m_count;
|
||||
Byte _buffer[64];
|
||||
static void Transform(UInt32 *digest, const UInt32 *data);
|
||||
void WriteByteBlock();
|
||||
public:
|
||||
enum {DIGESTSIZE = 32};
|
||||
SHA256() { Init(); } ;
|
||||
void Init();
|
||||
void Update(const BYTE *data, UINT32 size);
|
||||
void Final(BYTE *digest);
|
||||
void Update(const Byte *data, UInt32 size);
|
||||
void Final(Byte *digest);
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user