sha256.h
来自「seven zip源代码」· C头文件 代码 · 共 31 行
H
31 行
// Crypto/Sha256.h
#ifndef __CRYPTO_SHA256_H
#define __CRYPTO_SHA256_H
#include "Common/Types.h"
namespace NCrypto {
namespace NSha256 {
class CContext
{
static const UInt32 K[64];
UInt32 _state[8];
UInt64 _count;
Byte _buffer[64];
static void Transform(UInt32 *digest, const UInt32 *data);
void WriteByteBlock();
public:
enum {DIGESTSIZE = 32};
CContext() { Init(); } ;
void Init();
void Update(const Byte *data, size_t size);
void Final(Byte *digest);
};
}}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?