aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/engine.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused includeslloyd2010-11-041-4/+0
|
* Move PBKDF lookups to enginelloyd2010-11-041-0/+9
|
* Move the implemention of the functions in the Engine base class into alloyd2010-06-161-33/+15
| | | | | | | source file. Otherwise we ran into a conflict between Doxygen comments, which require us to name the params, and GCC's -Wunused-parameters, which will warn about parameters which aren't being used.
* Doxygen commentslloyd2010-06-161-14/+82
|
* More Doxygen updates/fixeslloyd2010-06-151-1/+1
|
* Remove IF_Corelloyd2010-03-051-11/+0
|
* Add ops for ElGamal encryption and decryption.lloyd2010-03-051-12/+11
| | | | | Note: blinding is not currently being used for RSA, RW, DH or ElGamal, which used to have them. This should be added back before release.
* Rename PK_Ops::Signature_Operation to PK_Ops::Signaturelloyd2010-03-051-2/+2
| | | | Rename PK_Ops::KA_Operation to PK_Ops::Key_Agreement
* Remove NR and DSA specific hookslloyd2010-03-051-20/+0
|
* Add verification ops for all signature key typeslloyd2010-03-051-0/+5
|
* Add signature generation operation classes. Remove sign() fromlloyd2010-03-051-0/+6
| | | | | | PK_Signing_Key, though for the moment the class remains because there are a few pieces of code that use it to detect if signatures are supported, or for passing to functions in look_pk
* This checkin represents a pretty major change in how PK operations arelloyd2010-03-041-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | performed. Up until now, each key object (eg DSA_PublicKey or ECDH_PrivateKey) had two jobs: contain the key material, and know how to perform any operations on that key. However because of a desire to support alternative implementations (GNU MP, hardware, whatever), there was a notion of operations, with the key objects containing an op that they got via engine rather than actually implementing the underlying algorithms directly. Now, represent the operation as an abstract interface (typically mapping a byte string to a byte string), and pass a plain Public_Key& or Private_Key& to the engine. The engine does any checks it wants (eg based on name, typeid, key sizes, etc), and either returns nothing (I'll pass) or a pointer to a new operation that represents signatures or encryption or what-have-you using that key. This means that plain key objects no longer contain operations. This is a major break with the traditional interface. On the other hand, using these 'bare' operations without padding, KDFs, etc is 99% of the time a bad idea anyway (and if you really need them, there are options so you get the bare op but via the pubkey.h interfaces). Currently this change is only implemented for DH and ECDH (ie, key agreement algorithms). Additionally the optional engines (gnump and openssl) have not been updated. I'll probably wait to touch those until after I can change them all in one go for all algos.
* Kill ECKAEG_Oplloyd2010-03-021-12/+0
|
* Remove ECDSA_Op and its attendant bitslloyd2010-03-021-12/+0
|
* 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
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-301-10/+12
| | | | | | | | | | | | | | | 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).
* Add an Algorithm_Factory& argument to Engine::get_cipher to avoid alloyd2008-11-231-1/+3
| | | | dependency on libstate.h
* 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-111-0/+180
| | | | | 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-091-225/+0
| | | | | | (messy). Remove unused libstate.h includes from a few files.
* Inline no-op Engine virtual functionslloyd2008-11-091-7/+18
|
* Add virtual hook to remove dep of Default_Engine on Engine itselflloyd2008-11-081-0/+2
|
* Move most of the Default_Engine code into engine/def_engine, and thelloyd2008-11-081-0/+212
engine base classes into src/engine