aboutsummaryrefslogtreecommitdiffstats
path: root/checks
Commit message (Collapse)AuthorAgeFilesLines
* Make the contents of Botan_types namespace be just using declarations,lloyd2008-06-071-1/+1
| | | | instead of introducing new typedefs.
* Add a full set of tests for the ANSI X9.31 PRNG, using data takenlloyd2008-06-078-53/+2158
| | | | | | | | 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.
* Make the two parameters of Randpool (which underlying block cipher and MAClloyd2008-05-252-5/+13
| | | | to use) explicit arguments to the constructor instead of being hardcoded.
* Avoid using the global RNG in check_key, instead pass a reference.lloyd2008-05-241-10/+10
| | | | Update the examples
* Previously random_integer and friends used the global PRNG object to getlloyd2008-05-245-18/+28
| | | | | | | | | | | | | 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.
* propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-216-20/+20
|\ | | | | | | | | | | 51f9ee5180a5cacdfff31504266e883b7bb0eb00) to branch 'net.randombit.botan.remove-libstate' (head 636b767b9686261418b1cb45a6271edeef87501b)
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2008-04-106-20/+20
| |\ | | | | | | | | | | | | | | | 6afe2db1f710f75bc27e189bb8bdb23613ce1ca3) to branch 'net.randombit.botan.remove-libstate' (head e40f0dbdfd847024c30fa0092c2acefc19a550b8)
| | * Remove the Global_RNG namespace, along with rng.h and rng.cpp. This waslloyd2008-04-076-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Update Fixed_Output_RNG (used for testing) to implement is_seededlloyd2008-04-211-0/+2
|/ /
* / Change the interface of X509_CA::sign_request as follows:lloyd2008-04-101-2/+7
|/ | | | | | | | | | | - The allow_ca policy value is no longer checked. Callers should check if the request is for a CA cert and treat it accordingly; this makes it simpler to to case-by-case decisions (expecially among multiple threads) - Instead of a single time value, a u32bit representing the number of seconds from now the certificate should expire, the start and end times are passed explicitly as two X509_Time values.
* Fix pk_bench.cpp compilation (remove a stray try statement)lloyd2008-01-171-3/+2
|
* merge of '3d9e9476c5b2a2ee125eee7e0dd10bfe460d0546'lloyd2007-12-2418-342/+364
|\ | | | | | | and '9fe0310805932b889bdfa17c9213f2b97d47ab6a'
| * Replace C-style casts with static_cast (found by GCC's -Wold-style-cast)lloyd2007-11-172-6/+5
| |
| * Add base64 encoding and decoding to the set of benchmarked filterslloyd2007-11-161-0/+3
| |
| * Revert the change that renamed append() to push_back(). As pointed outlloyd2007-11-151-1/+1
| | | | | | | | | | | | by Joel Low on the mailing list, the STL container types have only a single version of push_back(), along with variations of insert() for handling range-based appending.
| * Rename MemoryRegion::append to push_backlloyd2007-11-141-1/+1
| | | | | | | | Change all callers in the library and self-test code.
| * Prevent lines > 80 columnslloyd2007-11-111-1/+1
| |
| * Wrap lines in pk_bench and passhash to keep them under 80 columns.lloyd2007-10-191-3/+4
| |
| * Remove several uses of old style C casts in favor of C++98's static_cast and lloyd2007-10-193-7/+14
| | | | | | | | reinterpret_cast
| * Increase the (arbitrary) upper bound on how long the benchmarks can run tolloyd2007-09-181-1/+1
| | | | | | | | 5 minutes (300 seconds).
| * Add CBC-MAC(AES) tests that use longer inputslloyd2007-09-171-1/+85
| |
| * Check in an initial implementation of CBC-MAC.lloyd2007-09-161-136/+136
| | | | | | | | | | | | | | The test vectors were generated by Crypto++ 5.5 on a Linux/x86-64 machine. Test vectors for CBC-MAC(DES) all pass, for inputs up to 63 bytes. For CBC-MAC(AES-128), all test vectors with inputs over 10 bytes fail to verify against what Crypto++ produces. Unknown at this time where the bug lies.
| * Cleanup the public key benchmark code: avoid macros, use PEM/PKCSlloyd2007-09-1311-190/+119
| | | | | | | | | | | | | | | | | | #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-132-69/+9
| | | | | | | | | | algorithms exist. They haven't been used since the 'minimal' module was removed in Botan 1.3.14
| * Comment out the CBC-MAC test vectors for now since they cause warningslloyd2007-09-131-136/+136
| | | | | | | | about unknown algorithm names.
* | Remove the BOTAN_NO_ macroslloyd2007-09-132-69/+9
| |
* | Comment out the CBC-MAC test vectors since the algorithm has not beenlloyd2007-09-071-136/+136
|/ | | | implemented yet and warnings result when running the validation suite.
* Check in some test vectors for plain FIPS 113 CBC-MAC using DES and AES-128lloyd2007-08-031-0/+137
|
* Use the get_clock/get_ticks code instead of calling std::clock directly. Allowslloyd2007-07-231-5/+6
| | | | (nominally) more accurate results.
* 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).
* Document the --init flag to checklloyd2007-03-091-1/+3
|
* Eliminate most uses of exit() to bail on an error; instead throw anlloyd2007-02-193-33/+14
| | | | exception upto the top level, that's what it's there for.
* Use OptionParser::init_if_setlloyd2006-12-091-18/+14
| | | | Inline the print_help function
* Add a value_if_set member function to the getopt implementation (returnslloyd2006-12-092-1/+9
| | | | the option argument, or an empty string if no argument set)
* 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-272-14/+29
|
* Change the default CPU MHz when RDTSC is used to 1.866 GHz to match motokolloyd2006-09-261-1/+1
|
* Allow --bench-algo to take multiple argumentslloyd2006-09-261-4/+10
|
* Update reference for the SEED test vectorslloyd2006-09-141-2/+2
|
* Rename X509_PublicKey and PKCS8_PrivateKey to the new types within thelloyd2006-09-063-12/+12
| | | | self-test sources
* Split PK_Key into Public_Key and Private_Key; these new classes merge inlloyd2006-09-061-5/+32
| | | | the interfaces previously included in X509_PublicKey and PKCS8_PrivateKey.
* Respect the --seconds command line argument with --bench-algolloyd2006-08-132-4/+4
|
* Add checks for MD4, MD5, and SHA-1 for zero-length inputslloyd2006-08-131-0/+3
|
* In 'check', always initialize the library and run basic self tests, evenlloyd2006-08-121-6/+2
| | | | if run with no arguments.
* Remove the public domain notices from the self-test/benchmark code,lloyd2006-08-0912-19/+2
| | | | because it turns out to be something of a legal minefield.
* Add header guardslloyd2006-08-091-0/+5
|
* Enable testing the sizes of basic types in the test suite, and fix somelloyd2006-08-091-23/+7
| | | | minor compile errors and warnings that had crept into that code.
* Add a simple option parser to the check utility; it makes for much sanerlloyd2006-08-093-72/+171
| | | | | | | | | | code in check.cpp, and now the order of options on the command line should not change what heppens. The options taken have changed slightly. All options that take values are now --arg=value instead of "--arg value", and the various --bench-(blah) options have been turned into a new option --bench-type that takes an argument specifying the type of algorithm to benchmark.
* Modify the X.509 tests so they pick up a bug in PKCS10_Requestlloyd2006-06-231-0/+2
|
* Correct the name of the function with the bug.lloyd2006-06-071-4/+2
|