aboutsummaryrefslogtreecommitdiffstats
path: root/checks/pk_bench.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Previously random_integer and friends used the global PRNG object to getlloyd2008-05-241-4/+8
| | | | | | | | | | | | | 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-8/+8
| | | | | | | | | 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.
* Fix pk_bench.cpp compilation (remove a stray try statement)lloyd2008-01-171-3/+2
|
* merge of '3d9e9476c5b2a2ee125eee7e0dd10bfe460d0546'lloyd2007-12-241-187/+95
|\ | | | | | | and '9fe0310805932b889bdfa17c9213f2b97d47ab6a'
| * Replace C-style casts with static_cast (found by GCC's -Wold-style-cast)lloyd2007-11-171-2/+1
| |
| * Wrap lines in pk_bench and passhash to keep them under 80 columns.lloyd2007-10-191-3/+4
| |
| * Cleanup the public key benchmark code: avoid macros, use PEM/PKCSlloyd2007-09-131-184/+93
| | | | | | | | | | | | | | | | | | #8 format to store Rabin-Williams keys, inline small functions that are only called once into their caller. Reduces overall length of the file from 458 to 367 lines. Rename all the key files in keys/ to use a .pem suffix since they are all now in PEM format (the RSA keys had been for a long time but were never renamed).
| * Remove code checking the BOTAN_NO_ macros for if particular public keylloyd2007-09-131-28/+5
| | | | | | | | | | algorithms exist. They haven't been used since the 'minimal' module was removed in Botan 1.3.14
* | Remove the BOTAN_NO_ macroslloyd2007-09-131-28/+5
|/
* DSA-2048 and DSA-3072 benchmarks, disabled for a while due to lack oflloyd2007-03-091-4/+6
| | | | 'standard' groups (I may just go ahead and do this).
* Decide to print ms/op or ops/second at runtime instead of compile time.lloyd2006-11-121-10/+8
|
* Add (very basic) HTML output for public key benchmarking.lloyd2006-09-271-11/+26
|
* Rename X509_PublicKey and PKCS8_PrivateKey to the new types within thelloyd2006-09-061-1/+1
| | | | self-test sources
* Initial checkin1.5.6lloyd2006-05-181-0/+466