mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-14 04:11:37 -06:00
4.44 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
804edc5756
commit
d9666cf046
21
CPP/7zip/Crypto/Hash/RandGen.h
Executable file
21
CPP/7zip/Crypto/Hash/RandGen.h
Executable file
@@ -0,0 +1,21 @@
|
||||
// RandGen.h
|
||||
|
||||
#ifndef __RANDGEN_H
|
||||
#define __RANDGEN_H
|
||||
|
||||
#include "Sha1.h"
|
||||
|
||||
class CRandomGenerator
|
||||
{
|
||||
Byte _buff[NCrypto::NSha1::kDigestSize];
|
||||
bool _needInit;
|
||||
|
||||
void Init();
|
||||
public:
|
||||
CRandomGenerator(): _needInit(true) {};
|
||||
void Generate(Byte *data, unsigned int size);
|
||||
};
|
||||
|
||||
extern CRandomGenerator g_RandomGenerator;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user