aboutsummaryrefslogtreecommitdiffstats
path: root/checks/validate.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Split up tests by typelloyd2013-12-311-366/+0
|
* Make eax_test example (which reads LTC's EAX test file) an actuallloyd2013-12-311-0/+1
| | | | | test. Update to new AEAD api. Currently requires boost_regex (for tests only), done via hardcoding in makefile template.
* Testslloyd2013-12-311-238/+14
|
* Add Threefish-512lloyd2013-12-101-0/+1
|
* Add SIVlloyd2013-12-051-0/+1
|
* Generalize file reading test runner, use it for KDF and PBKDFlloyd2013-11-181-0/+2
|
* Add HKDFlloyd2013-11-171-0/+3
|
* Report results from all providers if more than one failurelloyd2013-03-271-3/+4
|
* Working GCM. Add support for AEAD modes in self testslloyd2013-03-161-0/+3
|
* propagate from branch 'net.randombit.botan' (head ↵lloyd2013-03-161-0/+3
|\ | | | | | | | | | | 039c91aa543bad85f227e8127ed048f9005e2fa0) to branch 'net.randombit.botan.aead-modes' (head 97d8d24b545f18084e39bf928c174c45efbb63bd)
| * OCB decryptionlloyd2013-03-141-1/+2
| |
| * Add OCB mode, currently encrypt only, and an AEAD interfacelloyd2013-03-141-0/+2
| |
* | Add algorithm_kat_detailed which returns a string with info about the failurelloyd2013-03-161-6/+6
|/
* Fix extension testing (bug 193)lloyd2012-06-081-1/+1
|
* Plain hex_decode now returns a std::vector, use hex_decode_locked tolloyd2012-05-261-1/+1
| | | | get a secure_vector.
* Replace 0 and NULL pointer constants with nullptr. Also fix an oldlloyd2012-05-181-2/+4
| | | | style cast in secmem.h
* Fairly huge update that replaces the old secmem types with std::vectorlloyd2012-05-181-4/+4
| | | | | | using a custom allocator. Currently our allocator just does new/delete with a memset before deletion, and the mmap and mlock allocators have been removed.
* Fix various typos, and remove an unused macro in checks/bench.cpplloyd2012-04-231-1/+1
| | | | All reported by Patrick Pelletier.
* Some fixes for very minimal builds (typically due to --no-autoload)lloyd2012-04-201-0/+2
|
* Add a second test for bcrypt, using an 8-bit character. This testlloyd2011-06-201-8/+13
| | | | | exposed a bug in JtR's blowfish code: http://www.openwall.com/lists/john-dev/2011/06/19/2
* Make the alg_id param for passhash9 optional. Update callers.lloyd2011-04-111-1/+1
|
* Add support for bcrypt, the Blowfish-based password hashing schemelloyd2011-02-161-0/+52
| | | | | used in OpenBSD. Tested as compatible with a common Java implementation (http://www.mindrot.org/projects/jBCrypt/)
* Add the NIST AES key wrap algorithm, as specified in RFC 3394 andlloyd2011-02-151-0/+86
| | | | http://csrc.nist.gov/groups/ST/toolkit/documents/kms/key-wrap.pdf
* More VC warning fixeslloyd2010-12-131-4/+4
|
* Remove more uses of vector to pointer implicit conversionslloyd2010-09-131-2/+2
|
* Add a basic test for cryptoboxlloyd2010-09-071-0/+46
|
* Use the standalone version of the hex decoder instead of the wrapper thatlloyd2010-09-031-2/+1
| | | | previously existed in misc.cpp that emulated it via a pipe and filter.
* For passhash9, add another interface that allows the caller to specifylloyd2010-08-221-4/+9
| | | | | | | | | | | which PRF they want to use. The old interface just calls this new version with alg_id set to 0 which is HMAC(SHA-1), which was previously the only supported PRF. Assign new codepoints for HMAC(SHA-256) and CMAC(Blowfish) to allow their use with passhash9. Have the generate+check tests run a test for each supported PRF.
* Fix some -Wmissing-declarations warnings in the test codelloyd2010-03-031-12/+10
|
* Make passhash9 tests more verbose since they are slowlloyd2010-02-231-2/+11
|
* Correct passhash9 vector for recent format changes (longer salt+PRF output, ↵lloyd2010-02-141-2/+3
| | | | alg id)
* Fix passhash9 test for updated API and macro namelloyd2010-02-141-6/+6
|
* Prefix passhash with "$9$" in a manner similar with otherlloyd2010-02-021-0/+32
| | | | | | | | | | | | | | | | password hashing schemes. Increase salt size to 80 bits. Research shows that virtually no other PBKDF2 implementations support anything but SHA-1; for ease of implementation elsehwere switch back from SHA-512 to SHA-1. Should be mostly harmless; it limits total entropy of the password to a maximum of 160 bits, but this is unlikely anyway. Use two bytes to specify the work factor for future-proofing. Add a test.
* 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