aboutsummaryrefslogtreecommitdiffstats
path: root/checks/bigint.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add copyright and license notes to pretty much every file that didn't have them,lloyd2009-12-311-0/+6
| | | | | | | | including the examples and self-test code. Most of these files had not copyright/license information at all; since a major point of the examples is to allow users to copy and paste code that already does something they want, an ambigious license is not good.
* Delete the self-test global RNG: just create one in main() and pass itlloyd2008-06-281-10/+14
| | | | where it is needed.
* Remove uses of global PRNG from self-test and benchmark code. Assumeslloyd2008-06-271-3/+2
| | | | access to /dev/random (will be cleaned up shortly)
* Fix some -Wmissing-declarations warningslloyd2008-06-121-0/+5
|
* Previously random_integer and friends used the global PRNG object to getlloyd2008-05-241-1/+2
| | | | | | | | | | | | | random bits. Now they take a reference to a RandomNumberGenerator object. This was applied several times out, so now the constructors to private key objects also take a RandomNumberGenerator& argument. This is also true for a number of randomized algorithms (Miller-Rabin, for instance). You can get a reference to the global PRNG with global_state().prng_reference() This is a provisional thing: and warning: it is not thread safe! If this is a problem instead keep per-thread PRNGs and pass them were needed.
* Remove the Global_RNG namespace, along with rng.h and rng.cpp. This waslloyd2008-04-071-2/+2
| | | | | | | | | essentially a facade for the RNG object living in the global library state. Rewrite all callers to directly invoke the global state object: this makes it more clear what functions are actually accessing mutable state outside of the normal reference graph (and thus, which functions will have to be altered in order to remove this dependency). Other facades remain in place for the configuration object and the memory allocator factory.
* Eliminate most uses of exit() to bail on an error; instead throw anlloyd2007-02-191-8/+4
| | | | exception upto the top level, that's what it's there for.
* Revert last change to check.cpp (didn't mean to commit that)lloyd2006-06-071-0/+18
| | | | Commit the actual squaring tests in checks/bigint.cpp
* If we find a problem during the BigInt tests, print the data in hexlloyd2006-05-191-8/+2
| | | | instead of decimal.
* Initial checkin1.5.6lloyd2006-05-181-0/+336