aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
Commit message (Collapse)AuthorAgeFilesLines
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-3037-464/+538
| | | | | | | | | | | | | | | up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
* GOST was using a completely non-standard set of sboxes. Change it to uselloyd2009-03-271-5/+5
| | | | | | | | | | | | | | | GostR3411_94_TestParamSet, this is compatible with the implementations in Crypto++ and OpenSSL. This is not backwards compatible, though once the implementation supports multiple param sets (which is required, unfortunately, for compatability with various standards by CryptoCom, who have defined not one but at least 4 (!!!) different sboxes to use with GOST), I may offer Botan's previous sbox set as an option. Since adding the GOST hash function (34.11) and signing algorithm (34.10) are on the long term agenda (request by Rickard Bondesson, as the Russian authorities want to use their local standards for their DNSSEC use), I renamed the block cipher class (which had been just 'GOST') to GOST_28147_89 to minimize future name clashes.
* Disable using OpenSSL's AES - it is causing crashes for an unknown reason.lloyd2008-11-241-0/+6
| | | | | | Backtrace is deep inside EVP. Valgrind says it is writing after the end of the allocated buffer. Other ciphers (all 64-bit blocks) are fine. I do not know if the problem is 64/128 bit or some other reason.
* Add an Algorithm_Factory& argument to Engine::get_cipher to avoid alloyd2008-11-233-6/+9
| | | | dependency on libstate.h
* Remove openssl/gnump engine dep on libstate, no longer a deplloyd2008-11-232-8/+0
|
* Library_State had two functions that did the same thing,lloyd2008-11-121-1/+1
| | | | | | | | | | | | | | | algo_factory and algorithm_factory. This is confusing so for consistency/simplicity, remove algo_factory, making algorithm_factory the function to call. In 1.7.14, several functions in lookup.h, including retrieve_block_cipher, retrieve_hash, etc were changed to accept a Library_State& reference. However it turns out with the modified design I've settled upon for 1.8 that it is not necessary to change those interfaces; instead they always refer to the global_state algorithm factory which is exactly the semantics one would expect/desire 99% of the time (and is source compatible with code written for 1.6, also a plus)
* Remove support for provider identifiers from SCAN_Name - it turns out thislloyd2008-11-121-1/+1
| | | | | | | | | | | | was not the right place to keep track of this information. Also modify all Algorithm_Factory constructor functions to take instead of a SCAN_Name a pair of std::strings - the SCAN name and an optional provider name. If a provider is specified, either that provider will be used or the request will fail. Otherwise, the library will attempt best effort, based on user-set algorithm implementation settings (combine with benchmark.h for choosing the fastest implementation at runtime) or if not set, a static ordering (preset in static_provider_weight in prov_weight.cpp, though it would be nice to make this easier to toggle).
* Remove pk_lookup - half of it (look_pk.{cpp,h}) depended on libstate directly,lloyd2008-11-111-2/+1
| | | | | the other half was relied upon by pubkey. Move the contents into those two modules. Update deps.
* Move most of the remaining libstate code to pk_engine.cpp, move engineslloyd2008-11-1144-0/+3365
| | | | | back to the toplevel since most othe dependencies have been removed now (except get_cipher which still needs changes)
* Move engine to libstate/ directory, since there is a mutual dependencylloyd2008-11-0936-3691/+0
| | | | | | (messy). Remove unused libstate.h includes from a few files.
* Inline no-op Engine virtual functionslloyd2008-11-092-63/+18
|
* Move some lookup related code from src/engine to src/libstate/lookup.cpplloyd2008-11-093-507/+243
|
* Rename SymmetricAlgorithm::key to key_schedule to avoid many namelloyd2008-11-092-4/+4
| | | | conflicts/collisions
* Simplify implementation of Default_Engine::get_cipher somewhatlloyd2008-11-081-94/+92
|
* Remove lookup from parallel hash constructionlloyd2008-11-081-2/+7
|
* Remove lookup.h use from EAXlloyd2008-11-081-2/+2
|
* Remove lookup.h from CTS modelloyd2008-11-081-2/+2
|
* Remove lookup.h use from ECB, CBC, CFBlloyd2008-11-081-6/+11
|
* Remove use of lookup.h from OFBlloyd2008-11-081-1/+1
|
* Remove use of lookup.h in CTR modelloyd2008-11-081-1/+1
|
* Remove needless include of mutex.hlloyd2008-11-081-1/+0
|
* Rename eng_def.h to def_eng.hlloyd2008-11-089-8/+8
|
* Add virtual hook to remove dep of Default_Engine on Engine itselflloyd2008-11-083-16/+14
|
* Remove dependency on Default_Engine from pubkey codelloyd2008-11-082-0/+120
|
* Invoke HMAC constructor directly for PBKDF2 since it is hardcoded anywaylloyd2008-11-081-1/+2
|
* Add def_engine info.txtlloyd2008-11-081-0/+15
|
* Add missing engine info.txtlloyd2008-11-081-0/+11
|
* Move most of the Default_Engine code into engine/def_engine, and thelloyd2008-11-0810-0/+1886
| | | | engine base classes into src/engine
* Add BOTAN_DLL macro to public class definitions that were missing it.lloyd2008-10-094-5/+5
|
* Split up GNU MP analagously with the OpenSSL change. GNU MP module canlloyd2008-10-089-389/+476
| | | | now be built with any or all public key algorithms disabled.
* Split OpenSSL public key implementations into algorithm specific files,lloyd2008-10-088-388/+496
| | | | | which allows it to be used while still disabling some (or all) public key algorithms.
* Split kdf.h and kdf.cpp from core/ to kdf/kdf_baselloyd2008-10-082-4/+4
| | | | Update dependencies as needed.
* Add dependencies on the public key implementations in the engines code,lloyd2008-10-022-0/+18
| | | | | since they assume all algos are available (need to be split up eventually, so one can use OpenSSL module in a RSA-only or DSA-only Botan)
* Rename all modinfo.txt files to info.txt, since they are all (none) oflloyd2008-09-292-0/+0
| | | | | them modules now. In any case there is no distinction so info.txt seems better.
* Move all modules into src/ directorylloyd2008-09-2816-0/+1749