aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/rw
Commit message (Collapse)AuthorAgeFilesLines
* propagate from branch 'net.randombit.botan' (head ↵lloyd2010-03-091-1/+1
|\ | | | | | | | | | | 9932d4d63417f7fcc199ada244cbaa6c1c32d9c1) to branch 'net.randombit.botan.c++0x' (head f4a385a376311edc62ef506c72cc56f69e6efd5a)
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-161-7/+0
| |\ | | | | | | | | | | | | | | | 744dccf92270cf16b80b50ee2759424c9866b256) to branch 'net.randombit.botan.c++0x' (head 2aa1acac1d05e8ea9991fe39015b1db9abc3b24e)
| * | Remove to_string, replacing with std::to_stringlloyd2009-11-181-1/+1
| | | | | | | | | | | | | | | Convert to_u32bit to use the new C++0x library func stoul instead of hand-written code.
* | | Deconstify PK_Ops. It's quite reasonable that some op will want tolloyd2010-03-092-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | precompute only as needed, or will want to access some other expensive resource or etc. Change how the secret for generating blinding is done in cases where a PRNG isn't available. Use the operations public op to hide the secret, for instance the seed for a DH blinding variable is 2^x mod p. Make use of being able to mutate internal structures in the RW signer, since that does have access to a PRNG, so use it to initialize the blinder on first call to sign().
* | | Add back in blinding to RSA, RW, ElGamal, and DH.lloyd2010-03-082-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are multiple unsatisfactory elements to the current solution, as compared to how blinding was previously done: Firstly, blinding is only used in the baseline implementations; the code using OpenSSL and GMP is not protected by blinding at all. Secondly, at the point we need to set up blinding, there is no access to a PRNG. Currently I am going with a quite nasty solution, of using a private key parameter to seed a simple PRNG constructed as: SHA-512(TS1 || private_key_param || public_key_param || TS2) I really want to fix both of these elements but I'm not sure how to do so easily.
* | | Modify pubkey classes to take names instead of object pointers.lloyd2010-03-081-4/+5
| | | | | | | | | | | | | | | Remove use of look_pk from the source and examples, instead instantiate classes directly.
* | | Remove the now no-op classes PK_Encrypting_Key,lloyd2010-03-081-3/+1
| | | | | | | | | | | | | | | PK_Decrypting_Key, PK_Signing_Key, PK_Verifying_with_MR_Key, and PK_Verifying_wo_MR_Key.
* | | Remove IF_Corelloyd2010-03-052-8/+3
| | |
* | | Constify sign and verify opslloyd2010-03-052-6/+6
| | |
* | | Remove sign and verify ops from key typeslloyd2010-03-052-55/+0
| | |
* | | Rename PK_Ops::Signature_Operation to PK_Ops::Signaturelloyd2010-03-051-1/+1
| | | | | | | | | | | | Rename PK_Ops::KA_Operation to PK_Ops::Key_Agreement
* | | Add verification ops for all signature key typeslloyd2010-03-052-1/+40
| | |
* | | Add signature generation operation classes. Remove sign() fromlloyd2010-03-052-5/+57
| | | | | | | | | | | | | | | | | | 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
* | | Remove IF_Scheme_PrivateKey::PKCS8_load_hooklloyd2010-03-042-6/+11
| | |
* | | New IF constructors, simplifies RSA/RWlloyd2010-03-042-33/+10
| | |
* | | Remove more load hookslloyd2010-03-042-2/+5
| | |
* | | Add similar decoding constructors to the private keyslloyd2010-03-041-2/+8
| | |
* | | Add a new constructor to each public key algorithm (only the publiclloyd2010-03-041-2/+6
| |/ |/| | | | | | | | | | | keys so far, private keys not changed) that takes an AlgorithmIdentifier and a MemoryRegion<byte>&. This performs the X.509 decoding. It is not possible anymore to create uninitialized PK objects.
* | Full working amalgamation build, plus internal-only headers concept.lloyd2009-12-161-7/+0
|/
* Remove the 'realname' attribute on all modules and cc/cpu/os info files.lloyd2009-10-291-2/+0
| | | | | Pretty much useless and unused, except for listing the module names in build.h and the short versions totally suffice for that.
* Add a script that reads the output of print_deps.py and rewriteslloyd2009-07-151-7/+6
| | | | | | the info.txt files with the right module dependencies. Apply it across the codebase.
* Move the contents of pubkey/pubkey (which was kind of a catch-all tolloyd2009-07-151-1/+0
| | | | | | | just toplevel pubkey). This was a convention I realized made sense sometime on when I was first doing the modularization changes. Move pkcs8.* and x509_key.* to pk_codecs
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-302-35/+39
| | | | | | | | | | | | | | | 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).
* Remove pk_lookup - half of it (look_pk.{cpp,h}) depended on libstate directly,lloyd2008-11-111-1/+0
| | | | | the other half was relied upon by pubkey. Move the contents into those two modules. Update deps.
* Move look_pk and pk_algs to new module pubkey/pk_lookuplloyd2008-10-011-5/+6
|
* Split Diffie-Hellman off almost completely, such that nearly none oflloyd2008-10-011-0/+1
| | | | | | | | | | it builds if it is disabled. Current deficiency: due to #if defined(BLAH) in the engine code, Botan will not be binary compat across different configurations b/c the vtable will change size. Move some source from core/ to core/libstate where it belonged (engine stuff)
* Rename pk dir to pubkey, avoids tab-completion collision with pk_padlloyd2008-10-013-0/+218