I'm using Crytpo++ for the first time and I'm having some trouble to
understand it.

in RandomPool what is the difference between IncorporateEntropy () and
Put().

I've made this test program to try to understand better.

  byte nums[] = { 10, 11, 12, 13, 14, 15, 16 };
  RandomPool rp;
//  rp.IncorporateEntropy(nums, 7);
  rp.Put(nums, 7);
  byte randomBytes[7];
  rp.GenerateBlock(randomBytes, 7);
  for(int i=0; i < 7; ++i)
    cout << (int)randomBytes[i] << endl;

Well, It always give me different random numbers either I use Put or
IncorporateEntropy. Are my numbers(nums) incorporated in the
RandomGenerator algorithm in any of this implementations(Put or
IncorporateEntropy)?
If so why does it give me always different random numbers? Is /dev/
random or similar also used?

I'm sorry if this was answered before(I did a quick check) and I'm
sorry I didn't have the patience to look further in to the source code
to get answers.

Thanks for you patience.

Álvaro Morais.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to