aboutsummaryrefslogtreecommitdiffstats
path: root/checks/validate.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.
* Remove unused arglloyd2009-10-091-3/+2
|
* Use the new selftest framework for testing hashes, MACs, and ciphers.lloyd2009-10-071-10/+33
| | | | | | Remove the Decrypt direction cipher mode tests - now both directions are always tested for all modes. Also add IVs for Salsa20 (were implicit all-zeros) since that does not fly anymore in validate.dat
* Use the Timer class for all benchmarkinglloyd2008-09-051-3/+12
|
* Delete the self-test global RNG: just create one in main() and pass itlloyd2008-06-281-9/+14
| | | | where it is needed.
* Remove uses of global PRNG from self-test and benchmark code. Assumeslloyd2008-06-271-2/+2
| | | | access to /dev/random (will be cleaned up shortly)
* Fix some -Wmissing-declarations warningslloyd2008-06-121-0/+6
|
* Add a full set of tests for the ANSI X9.31 PRNG, using data takenlloyd2008-06-071-1/+1
| | | | | | | | from the NIST CAVS dataset, taken on June 7 2008 from http://csrc.nist.gov/groups/STM/cavp/standards.html AES-128, AES-192, AES-256, and 2 and 3-key TripleDES variants are all tested.
* 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.
* Remove several uses of old style C casts in favor of C++98's static_cast and lloyd2007-10-191-1/+1
| | | | reinterpret_cast
* Eliminate most uses of exit() to bail on an error; instead throw anlloyd2007-02-191-12/+5
| | | | exception upto the top level, that's what it's there for.
* Remove the public domain notices from the self-test/benchmark code,lloyd2006-08-091-1/+0
| | | | because it turns out to be something of a legal minefield.
* Initial checkin1.5.6lloyd2006-05-181-0/+298