aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey
Commit message (Collapse)AuthorAgeFilesLines
* propagate from branch 'net.randombit.botan' (head ↵lloyd2010-01-2117-47/+71
|\ | | | | | | | | | | 12382647ef0a28fcb11c824c77b670cc88a4f721) to branch 'net.randombit.botan.c++0x' (head b586a3286d2c4d547ad3add5af9df1455bf4b87b)
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-2217-47/+71
| |\ | | | | | | | | | | | | | | | 5525439539abc808b7b8588380a362303cf3c599) to branch 'net.randombit.botan.c++0x' (head 6749468bfbdeff4636b7a15de412a6c89f1aea87)
| | * propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-1617-47/+71
| | |\ | | | | | | | | | | | | | | | | | | | | 22c82e10d78ad0e2cdaa56cb02f3d846ed0ead5e) to branch 'net.randombit.botan.c++0x' (head 74dbf310b7fcc11f94a16cd63046219acd5d62bc)
| | | * Post-merge fixeslloyd2009-12-164-4/+4
| | | |
| | | * propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-1623-153/+38
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | 744dccf92270cf16b80b50ee2759424c9866b256) to branch 'net.randombit.botan.c++0x' (head 2aa1acac1d05e8ea9991fe39015b1db9abc3b24e)
| | | * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-11-1917-47/+71
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2f3665f775fafbdfa517ecdca7f872e35bd90277) to branch 'net.randombit.botan.c++0x' (head 45169719ddd8977b1eb20637576bc855dbc867a0)
| | | | * | Remove to_string, replacing with std::to_stringlloyd2009-11-184-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert to_u32bit to use the new C++0x library func stoul instead of hand-written code.
| | | | * | auto_ptr is unique_ptr in C++0xlloyd2009-11-181-2/+2
| | | | | |
| | | | * | propagate from branch 'net.randombit.botan' (head ↵lloyd2009-11-1813-37/+61
| | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 23f95467137a0531f74574d1e3eb822734f0c5f2) to branch 'net.randombit.botan.c++0x' (head 427be8496e669880b1bf532eb829ebbdbeaf34c9)
| | | | | * | Use async in ElGamal encryption and Nyberg-Rueppel verificationlloyd2009-11-182-4/+10
| | | | | | |
| | | | | * | Add a simple version of std::async as std_async in async.h and use itlloyd2009-11-172-39/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | in the RSA and DSA ops.
| | | | | * | Also parallelize DSA signature generation, though due to critical pathlloyd2009-11-171-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | constraints there isn't that much parallelization to extract. Slightly faster; better for smaller key sizes as once a certain point is reached one thread is doing a lot more work than the other.
| | | | | * | Use a thread to compute half of the DSA verification. 20-90% faster dependinglloyd2009-11-171-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | on key size on a Core2.
| | | | | * | In IF decryption, two large powmods are done, one mod p and one mod q. Spawnlloyd2009-11-171-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | one of them off in a new thread and compute the other on the current thread. Performance on my Core2 shows a 60 to 90% improvement in overall speed in RSA private key operations. Will probably be even better once std::async is available (not currently in GCC) since it will probably use a thread pool which will amortize the thread creation/shutdown cost.
| | | | | * | propagate from branch 'net.randombit.botan' (head ↵lloyd2009-11-179-25/+24
| | | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0ac5a29496b4e50775827d9655c064f6d1c98813) to branch 'net.randombit.botan.c++0x' (head 3232da044d41756582b53da9d14c3ac07e9b2916)
| | | | | | * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-11-174-5/+5
| | | | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cfb19182987fc95b2a8885584a38edb10b4709b3) to branch 'net.randombit.botan.c++0x' (head 1570877c463fed4b632bc49a5b5ee27c57de2cb5)
| | | | | | * \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-11-132-6/+6
| | | | | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ac888e57b614c623590d79ab615353ad7c76ef68) to branch 'net.randombit.botan.c++0x' (head 9bf78ed7e2521a328f6db7acbc1cd81b07718230)
| | | | | | * \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-11-029-25/+24
| | | | | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2773c2310e8c0a51975987a2dd6c5824c8d43882) to branch 'net.randombit.botan.c++0x' (head f13cf5d7e89706c882604299b508f356c20aae3a)
| | | | | | | * \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-10-139-25/+24
| | | | | | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 139d6957d20f0b1202e0eacc63cb011588faffde) to branch 'net.randombit.botan.c++0x' (head c16676fa6c393bc3f46a044755ce525a013380a6)
| | | | | | | | * \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-09-179-6/+78
| | | | | | | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 92e05ab242e4b6998d685961c53700534a673bce) to branch 'net.randombit.botan.c++0x' (head 27ce37b971ec5cb1f80a9a95b13d5a951b96653b)
| | | | | | | | * \ \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-09-089-25/+24
| | | | | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5cadcc57872bef55226579df57349fe09a93d1f5) to branch 'net.randombit.botan.c++0x' (head d1747f0394aa4442e5b32b9102b830e1a86f0e5a)
| | | | | | | | | * \ \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-07-2131-96/+113
| | | | | | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 95eb8083f5884531e5ca0667388f8a6fb6d05c41) to branch 'net.randombit.botan.c++0x' (head 56e105e678540c8bcafa4d0198c19a9489fbf8d1)
| | | | | | | | | * \ \ \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-06-049-25/+24
| | | | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6a746ccf1e957dba703e65372050a7bd4d6b117d) to branch 'net.randombit.botan.c++0x' (head f54bb7b391eb3b71f380a68ddd460debdc31545d)
| | | | | | | | | | * | | | | | Replace the (deprecated) auto_ptr with unique_ptr.lloyd2009-04-019-25/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was mostly a s/auto_ptr/unique_ptr/, except in the CVC code and one function in ECDSA, which relied on auto_ptr's move semantics (ugh) and had to be modified in various ways.
* | | | | | | | | | | | | | | | Remove catch clauses made redundant by inheritence changes in exception ↵lloyd2010-01-081-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hierarchy.
* | | | | | | | | | | | | | | | Clean up exceptions. Remove some unused ones like Config_Error. Makelloyd2010-01-054-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Invalid_Argument just a typedef for std::invalid_argument. Make Botan::Exception a typedef for std::runtime_error. Make Memory_Exhaustion a public exception, and use it in other places where memory allocations can fail.
* | | | | | | | | | | | | | | | Add copyright and license notes to pretty much every file that didn't have them,lloyd2009-12-313-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | including the examples and self-test code. Most of these files had not copyright/license information at all; since a major point of the examples is to allow users to copy and paste code that already does something they want, an ambigious license is not good.
* | | | | | | | | | | | | | | | Switch from TripleDES to AES-256 for private key encryption bylloyd2009-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | default. OpenSSL 0.9.8 understands keys encrypted like this fine, which was the big reason for holding back on this before IIRC. AES-256 was chosen over AES-128 not for the longer key length (it's a password hash so unlikely to have more than 96 bits of entropy) but for the extra 4 rounds of AES-256 vs AES-128.
* | | | | | | | | | | | | | | | Correct documentation about default_pbelloyd2009-12-261-6/+4
|/ / / / / / / / / / / / / / /
* / / / / / / / / / / / / / / Remove unneeded iostream/stdio includeslloyd2009-12-211-3/+0
|/ / / / / / / / / / / / / /
* | | | | | | | | | | | | / Add missing BOTAN_DLL exports.lloyd2009-12-1615-14/+33
| |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move most of the engine headers to internal
* | | | | | | | | | | | | Make many more headers internal-only.lloyd2009-12-163-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes for the amalgamation generator for internal headers. Remove BOTAN_DLL exporting macros from all internal-only headers; the classes/functions there don't need to be exported, and avoiding the PIC/GOT indirection can be a big win. Add missing BOTAN_DLLs where necessary, mostly gfpmath and cvc For GCC, use -fvisibility=hidden and set BOTAN_DLL to the visibility __attribute__ to export those classes/functions.
* | | | | | | | | | | | | Full working amalgamation build, plus internal-only headers concept.lloyd2009-12-1620-146/+28
|/ / / / / / / / / / / /
* / / / / / / / / / / / Name argumentslloyd2009-11-181-6/+12
|/ / / / / / / / / / /
* / / / / / / / / / / Much cleaning up in ECDSA, though it's still rather a mess (and 50x slowerlloyd2009-11-186-151/+109
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | than OpenSSL... that's a problem for another branch though).
* | | | | | | | | / Move most code that relies heavily on Filters into src/filters.lloyd2009-11-173-221/+0
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove support for (unused) modset settings. Move tss, fpe, cryptobox, and aont to new dir constructs
* | | | | | | | | Rename/remove some secmem member variables for better matching with STLlloyd2009-11-174-5/+5
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | containers (specifically vector). Rename is_empty to empty Remove has_items Rename create to resize
* | | | | | | | Make set_all_values in {ECDSA,ECKAEG}_{Public,Private}Key all non-virtual;lloyd2009-11-102-6/+6
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | virtual-ness not needed, and was overriding/overloading by argument which doesn't actually work in C++ and only happened to work because it was only ever used with the version implemented in that same class. ICC was warning, too. Make non-virtual.
* / / / / / / Remove the 'realname' attribute on all modules and cc/cpu/os info files.lloyd2009-10-2917-34/+0
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | Pretty much useless and unused, except for listing the module names in build.h and the short versions totally suffice for that.
* | | | | | propagate from branch 'net.randombit.botan.1_8' (head ↵lloyd2009-10-1312-8/+95
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c5ae189464f6ef16e3ce73ea7c563412460d76a3) to branch 'net.randombit.botan' (head e2b95b6ad31c7539cf9ac0ebddb1d80bf63b5b21)
| * | | | | | Reasonably functional RSA support; keygen, import/export, encrypt/decrypt, ↵lloyd2009-10-091-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | sign/verify
| * | | | | | Add 'Distributed under...' text to files missing it. Some format cleanupslloyd2009-10-072-1/+10
| | |_|_|_|/ | |/| | | |
| * | | | | Split up util.h into 3 fileslloyd2009-09-179-6/+78
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - rounding.h (round_up, round_down) - workfactor.h (dl_work_factor) - timer.h (system_time) And update all users of the previous util.h
* / / / / Fix indentlloyd2009-10-131-1/+1
|/ / / /
* | | | Replace 'XXX' and other such notes with FIXME for easy greppinglloyd2009-07-222-3/+4
| | | |
* | | | Fix some unused variable nits pointed out by icc 10.1lloyd2009-07-212-7/+1
| | | |
* | | | One signature of PKCS8::PEM_encode was stray, and didn't have a coorespondinglloyd2009-07-211-5/+0
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | implementation. This had been the case since at least 1.8.0. Remove it, since implementing this signature would require having the library create an AutoSeeded_RNG, which seems like it might be quite surprising to an unsuspecting user. Problem reported by M. Braun in ticket 44
* | | Move back to pk_codecs, propagate to pubkey-refactor donelloyd2009-07-214-0/+0
| | |
* | | Move from pk_codecs to pubkey to solve merge problemlloyd2009-07-214-0/+0
| | |
* | | Correct source listings for moved fileslloyd2009-07-161-2/+0
| | |