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