Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove pk_lookup - half of it (look_pk.{cpp,h}) depended on libstate directly, | lloyd | 2008-11-11 | 3 | -3/+155 |
| | | | | | the other half was relied upon by pubkey. Move the contents into those two modules. Update deps. | ||||
* | Include libstate.h in botan.h, since it is pretty vital at this point to | lloyd | 2008-11-11 | 1 | -0/+1 |
| | | | | | be able to get the global_state so as to get a reference to the Algorithm_Factory | ||||
* | Move most of the remaining libstate code to pk_engine.cpp, move engines | lloyd | 2008-11-11 | 48 | -3613/+96 |
| | | | | | back to the toplevel since most othe dependencies have been removed now (except get_cipher which still needs changes) | ||||
* | Make Engine::find_XYZ public | lloyd | 2008-11-11 | 1 | -15/+17 |
| | |||||
* | Remove needless include of libstate.h from init.h | lloyd | 2008-11-11 | 1 | -1/+2 |
| | |||||
* | Split asm_engine into three engines (ia32, amd64, sse2). This allows | lloyd | 2008-11-11 | 12 | -70/+199 |
| | | | | them to be individually requested as providers on lookup. | ||||
* | Make SCAN_Name::arg return a new SCAN_Name that has the same providers list, | lloyd | 2008-11-11 | 2 | -20/+25 |
| | | | | this allows provider preferences to be passed down to sub-algorithms. | ||||
* | Update Library_State for new Algorithm_Factory constructor | lloyd | 2008-11-11 | 1 | -1/+1 |
| | |||||
* | Remove pk testing policies (now static) | lloyd | 2008-11-11 | 1 | -4/+0 |
| | |||||
* | Remove a global_state() dependency on Engine without breaking Monotone | lloyd | 2008-11-11 | 2 | -15/+15 |
| | | | | via two-stage initialization. | ||||
* | Fix destructor | lloyd | 2008-11-11 | 1 | -1/+1 |
| | |||||
* | After finding myself typing global_state().algorithm_factory() instead | lloyd | 2008-11-11 | 2 | -10/+11 |
| | | | | | of algo_factory() several times, I decided to rename the functions. algorithm_factory() just forwards to algo_factory as an inline. | ||||
* | Add back default empty arguments to LibraryInitializer | lloyd | 2008-11-11 | 2 | -3/+3 |
| | | | | Set default thread safety to false | ||||
* | Move Algorithm_Factory from libstate (which it did not depend on) to ↵ | lloyd | 2008-11-11 | 3 | -320/+1 |
| | | | | algo_factory/ | ||||
* | Drop look_add.h and the freestanding add_algorithm functions | lloyd | 2008-11-11 | 3 | -66/+0 |
| | |||||
* | Change LibraryInitializer back to accepting a std::string for backwards | lloyd | 2008-11-11 | 3 | -5/+35 |
| | | | | compatability. | ||||
* | Fix leak in Luby-Rackoff lookup (got new object instead of prototype as ↵ | lloyd | 2008-11-11 | 1 | -2/+1 |
| | | | | intented) | ||||
* | New function name in SCAN_Name | lloyd | 2008-11-11 | 1 | -1/+1 |
| | |||||
* | Remove lookup.h use from DLIES, PK key agreement, DSA param gen, get_enc.cpp | lloyd | 2008-11-11 | 2 | -1/+3 |
| | |||||
* | Remove lookup dep from basic pubkey classes | lloyd | 2008-11-10 | 1 | -0/+3 |
| | |||||
* | Add back Library_State::add_engine for Monotone | lloyd | 2008-11-10 | 2 | -0/+10 |
| | |||||
* | Shorten SCAN_Name's argument arg in function names | lloyd | 2008-11-10 | 5 | -32/+32 |
| | |||||
* | Move get_bc_pad to def_engine/def_mode.cpp | lloyd | 2008-11-10 | 5 | -85/+66 |
| | | | | Compilation fix in arc4_openssl.cpp | ||||
* | Drop all options except thread safety. Also remove InitializerOptions, etc | lloyd | 2008-11-10 | 6 | -229/+30 |
| | | | | | | | | | | | | | | | and reduce all the arguments to just a bool specifying threads. selftests: off (if desired, run passes_self_test in selftest.h) fips140: Just ran the self tests, totally bogus option. use_engine: On by default (that is, if OpenSSL or asm code is compiled in, it's used by default). One can get better control over this using the provider feature of SCAN_Name (though this doesn't handle cases like nested algorithms yet). secure_memory: On by default. | ||||
* | Remove Modules class from the initializer code - it just wasn't that useful | lloyd | 2008-11-10 | 7 | -229/+77 |
| | | | | as an abstraction. Check #ifdef's for engines and such directly in libstate.cpp | ||||
* | Move x86 Serpent to the asm engine module. | lloyd | 2008-11-10 | 8 | -73/+55 |
| | | | | Move OpenSSL's RC4 back into a single file again. | ||||
* | Use Algorithm_Factory instead of lookup in Default_Engine block cipher | lloyd | 2008-11-10 | 3 | -13/+10 |
| | | | | and mac tables | ||||
* | Move block and stream ciphers also into Algorithm_Factory | lloyd | 2008-11-10 | 12 | -210/+293 |
| | |||||
* | Move MACs also to Algorithm_Factory | lloyd | 2008-11-10 | 7 | -75/+139 |
| | |||||
* | Split PK stuff from engine.cpp to pk_engine.cpp | lloyd | 2008-11-10 | 3 | -173/+189 |
| | |||||
* | Move add_algorithm for hashes also to Algorithm_Factory | lloyd | 2008-11-10 | 3 | -22/+27 |
| | |||||
* | Remove printfs | lloyd | 2008-11-10 | 1 | -5/+0 |
| | |||||
* | Split the assembly implementations of the hash functions into asm_engine. | lloyd | 2008-11-10 | 6 | -39/+125 |
| | | | | | | This still is not an ideal split, since for SHA-1 we have both SSE2 and x86/x86-64 asm. Currently we continue to punt to SSE2 if enabled, otherwise asm, since the SSE2 seems to be the fastest thing going in my tests so far. | ||||
* | Have Algorithm_Factory::make_hash_function throw an exception if it can't | lloyd | 2008-11-10 | 2 | -8/+4 |
| | | | | | | find an object to clone. Add a new constructor to Hash_Filter taking a HashFunction* | ||||
* | Use Algorithm_Factory and SCAN_Name for all hash lookups. Modify engines | lloyd | 2008-11-10 | 11 | -76/+129 |
| | | | | accordingly. | ||||
* | Add a class Algorithm_Factory which encapsulates the Engine classes (and | lloyd | 2008-11-10 | 7 | -85/+160 |
| | | | | which will eventually encapsulate the lookup logic as well) | ||||
* | Split pk_pad.h into eme.h and emsa.h | lloyd | 2008-11-10 | 1 | -1/+2 |
| | |||||
* | Modify OpenSSL to use SCAN_Name | lloyd | 2008-11-10 | 3 | -47/+34 |
| | |||||
* | Remove unused provider function | lloyd | 2008-11-10 | 1 | -2/+0 |
| | |||||
* | Fix include, add namespace and copyright | lloyd | 2008-11-10 | 1 | -1/+9 |
| | |||||
* | Add eng_ossl.cpp to build | lloyd | 2008-11-10 | 1 | -0/+1 |
| | |||||
* | Make the ARC4 implementation from OpenSSL visible in arc4_openssl.h | lloyd | 2008-11-10 | 5 | -93/+95 |
| | |||||
* | Remove support for block cipher padding methods in engine. Like S2K, | lloyd | 2008-11-10 | 8 | -130/+30 |
| | | | | | | | | | | they were not used at all outside of the core library implementations. One change is that now get_bc_pad returns a new object, instead of a pointer to a const shared padding method. This does imply a bit more dynamic memory overhead, but the modes are pretty light (stateless, for the most part), so this doesn't seem like a big deal. So modify ECB and CBC classes to add destructors to delete the padding object. | ||||
* | Remove support for S2K in Engines. There are only three implementations of | lloyd | 2008-11-10 | 8 | -110/+39 |
| | | | | | | an S2K in Botan, all in the core library, and it's relatively unlikely that that many more will be added. get_s2k still exists and performs a direct search across the possibilities. | ||||
* | Sort lines | lloyd | 2008-11-10 | 1 | -2/+2 |
| | |||||
* | Mark libstate as depending on mode_pad | lloyd | 2008-11-10 | 1 | -0/+1 |
| | |||||
* | Remove find_bc_pad from lookup_stream.cpp | lloyd | 2008-11-10 | 1 | -25/+0 |
| | |||||
* | Split lookup_cipher.cpp into lookup_{block,stream,bc_pad}.cpp | lloyd | 2008-11-10 | 4 | -82/+131 |
| | |||||
* | Modify Lion lookup to use arg_count_between | lloyd | 2008-11-09 | 1 | -2/+1 |
| | |||||
* | Modify get_enc to use SCAN_Name | lloyd | 2008-11-09 | 1 | -82/+41 |
| |