MCPcopy Create free account
hub / github.com/LUX-Core/lux / IncorporateEntropy

Method IncorporateEntropy

src/cryptopp/randpool.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void RandomPool::IncorporateEntropy(const byte *input, size_t length)
27{
28 SHA256 hash;
29 hash.Update(m_key, 32);
30 hash.Update(input, length);
31 hash.Final(m_key);
32 m_keySet = false;
33}
34
35void RandomPool::GenerateIntoBufferedTransformation(BufferedTransformation &target, const std::string &channel, lword size)
36{

Callers 10

GenerateRSAKeyFunction · 0.45
RSAEncryptStringFunction · 0.45
SecretShareFileFunction · 0.45
TestAutoSeededFunction · 0.45
TestAutoSeededX917Function · 0.45
TestRDRANDFunction · 0.45
TestRDSEEDFunction · 0.45
TestNIST_DRBGFunction · 0.45
Put2Method · 0.45
SignAndRestartFunction · 0.45

Calls 1

UpdateMethod · 0.45

Tested by 8

GenerateRSAKeyFunction · 0.36
RSAEncryptStringFunction · 0.36
SecretShareFileFunction · 0.36
TestAutoSeededFunction · 0.36
TestAutoSeededX917Function · 0.36
TestRDRANDFunction · 0.36
TestRDSEEDFunction · 0.36
TestNIST_DRBGFunction · 0.36