aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
Commit message (Collapse)AuthorAgeFilesLines
* Refactor Default_Engine::get_cipher so bits can be called from selftestlloyd2009-10-062-84/+104
|
* merge of '1efb42e84eca9e01edd7b7f1335af7011eab994c'lloyd2009-09-251-0/+7
|\ | | | | | | and 'bb55abb64b64ca63aeb361db40c6bc4692d4ce48'
| * Add runtime cpuid support. Check in the SSE2 engine that SSE2 is actuallylloyd2009-09-251-0/+7
| | | | | | | | existing on the current CPU before returning an object.
* | Enable OpenSSL AES (fixed, I think). And add support for OpenSSL's RC5lloyd2009-09-241-1/+7
|/
* Update OpenSSL engine with encrypt_n interface for block ciphers.lloyd2009-09-172-12/+46
| | | | | | Add support for SHA-2 and SEED. Wrap block cipher usage in checks for OPENSSL_NO_XXX
* Add an implementation of Blue Midnight Wish (512 bit version only)lloyd2009-09-151-0/+9
|
* Enable SSE2 engine under VC++lloyd2009-09-131-0/+1
|
* propagate from branch 'net.randombit.botan.1_8' (head ↵lloyd2009-08-311-0/+10
|\ | | | | | | | | | | c2624292793f396cf940403e0d12073a9b2c7b17) to branch 'net.randombit.botan' (head 07a71effa1ba495b6ea57b2490ad38bf58a23bd0)
| * Thomas Moschny mentioned that OpenSSL 1.0 betas disable MD2 by default.lloyd2009-08-271-0/+10
| | | | | | | | Wrap the EVP_ calls in OPENSSL_NO_XXX checks to handle this.
* | Instead of each SSE2 implementation specifying which compilers + CPUs itlloyd2009-08-271-1/+8
| | | | | | | | | | works on, have sse2_eng rely on a specific compiler/arch; each sse2 impl depends on the engine anyway, so they will only be loaded if OK.
* | Make encrypt_n public for all BlockCipher implementations - unlike thelloyd2009-08-112-4/+24
|/ | | | | | enc/dec functions it replaces, these are public interfaces. Add the first bits of a SSE2 implementation of Serpent. Currently incomplete.
* Move some files around to break up dependencies between directorieslloyd2009-07-162-0/+2
|
* Add a script that reads the output of print_deps.py and rewriteslloyd2009-07-154-0/+23
| | | | | | the info.txt files with the right module dependencies. Apply it across the codebase.
* CPU-specific engines are now only loaded if something depends on them,lloyd2009-07-073-11/+3
| | | | | | | | | | | | and all CPU-specific implementations now depend on the appropriate engine module. The most common problem before with this was that the SSE2 module was built, but the sole SSE2 code (SHA-1) was not (for instance, on an i686). This would cause a compile warning about the unused request object. Preventing unused engines from being built will also (very slightly) speed up the lookup process on most system.
* Small cleanups in the Skein-512 source, and add support for thelloyd2009-06-031-1/+2
| | | | personalization option.
* Add an implementation of Skein-512lloyd2009-06-021-0/+9
|
* engine.h had copies of some declarations from pk_engine.h that had notlloyd2009-05-131-43/+0
| | | | | | been removed when that portion of the code was split off. Remove the duplicated code from engine.h and update some code in pubkey that still relied on the declarations in engine.h instead of pk_engine.h
* Add XTS mode, from IEEE P1619lloyd2009-04-161-0/+14
|
* Add the GOST 34.11 hash function. Pretty slow, but functional.lloyd2009-04-071-0/+9
|
* Support different GOST paramters in the lookup interface.lloyd2009-03-311-1/+1
|
* 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.