summaryrefslogtreecommitdiff
path: root/randpool.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use <time.h> for Borland/Embarcadero (GH #512)Jeffrey Walton2017-09-201-1/+1
|
* Remove pre-Crypto++ 5.5 interfaceJeffrey Walton2017-08-021-35/+18
| | | | Users of OldRandomPool must use the new interface. All that means is they must call IncorporateEntropy instead of Put, and GenerateBlock instead of Get
* Cut-in RandomNumberGenerator interface to OldRandPoolJeffrey Walton2017-08-021-0/+5
| | | | | | | | The existing interface still exists. The new interface is routed into the old methods. Without the new interface, using OldRandPool could result in: $ ./cryptest.exe v terminate called after throwing an instance of CryptoPP::NotImplemented what(): RandomNumberGenerator: IncorporateEntropy not implemented Aborted (core dumped)
* Cleared unused variable warningsJeffrey Walton2017-08-011-55/+56
|
* Add OldRandomPool class (Issue 452)Jeffrey Walton2017-08-011-1/+89
| | | | | | | | | | | | | | | | | RandomPool used to be a PGP-style deterministic generator and folks used it as a key generation function. At Crypto++ 5.5 the design changed to harden it agianst rollback attacks. The design change resulted in an upgrade barrier. That is, some folks are stuck at Crypto++ 4.2 or Crypto++ 5.2 because they must interoperate with existing software. Below is the test program we used for the test vector. It was run against Crypto++ 5.4. RandomPool prng; SecByteBlock seed(0x00, 384), result(64); prng.Put(seed, seed.size()); prng.GenerateBlock(result, result.size()); HexEncoder encoder(new FileSink(std::cout)); std::cout << "RandomPool: "; encoder.Put(result, sizeof(result)); std::cout << std::endl;
* Add C++ nullptr support (Issue 383)Jeffrey Walton2017-03-011-1/+1
|
* Change file preamble to include "originally written by Wei Dai"Jeffrey Walton2017-01-271-1/+1
| | | | We have made a fair number of changes, and we don't want WD to receive credit for issues he was not part of
* Whitespace checkinJeffrey Walton2016-09-101-2/+2
|
* Cleared -Wcast-align (Issue 122)Jeffrey Walton2016-01-241-5/+5
|
* CRYPTOPP 5.6.3 RC6 checkinJeffrey Walton2015-11-051-68/+74
|
* Added GCC_DIAGNOSTIC_AWARE to help suppress some warnings on contemporary ↵Jeffrey Walton2015-06-291-0/+5
| | | | compilers. The macro was needed to help with managing old compilers, like GCC 4.2.1, present on OpenBSD
* initialize memory to remove Valgrind warning (Zooko, Jeffrey Walton)weidai2009-09-171-0/+2
|
* reduce risk of reusing random numbers after VM state rollbackweidai2007-05-041-76/+36
|
* port to MSVC .NET 2005 beta 2weidai2005-07-121-14/+10
|
* create DLL version, fix GetNextIV() bug in CTR and OFB modesweidai2003-07-041-0/+5
|
* Initial revisionweidai2002-10-041-0/+100