aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/gfpmath
Commit message (Collapse)AuthorAgeFilesLines
* propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-167-52/+43
|\ | | | | | | | | | | 22c82e10d78ad0e2cdaa56cb02f3d846ed0ead5e) to branch 'net.randombit.botan.c++0x' (head 74dbf310b7fcc11f94a16cd63046219acd5d62bc)
| * Post-merge fixeslloyd2009-12-161-8/+0
| |
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-165-52/+61
| |\ | | | | | | | | | | | | | | | 744dccf92270cf16b80b50ee2759424c9866b256) to branch 'net.randombit.botan.c++0x' (head 2aa1acac1d05e8ea9991fe39015b1db9abc3b24e)
| * | Remove TR1 hooks - can be assumed to exist under a C++0x compilerlloyd2009-11-131-3/+1
| | |
| * | propagate from branch 'net.randombit.botan' (head ↵lloyd2009-11-134-40/+21
| |\ \ | | | | | | | | | | | | | | | | | | | | ac888e57b614c623590d79ab615353ad7c76ef68) to branch 'net.randombit.botan.c++0x' (head 9bf78ed7e2521a328f6db7acbc1cd81b07718230)
| * \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-11-026-50/+43
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 2773c2310e8c0a51975987a2dd6c5824c8d43882) to branch 'net.randombit.botan.c++0x' (head f13cf5d7e89706c882604299b508f356c20aae3a)
| | * \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-10-136-50/+43
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 139d6957d20f0b1202e0eacc63cb011588faffde) to branch 'net.randombit.botan.c++0x' (head c16676fa6c393bc3f46a044755ce525a013380a6)
| | | * \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-07-211-5/+5
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 95eb8083f5884531e5ca0667388f8a6fb6d05c41) to branch 'net.randombit.botan.c++0x' (head 56e105e678540c8bcafa4d0198c19a9489fbf8d1)
| | | * \ \ \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-07-156-50/+43
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5438defd358f82e876917a8bd6d735305ecb0a8e) to branch 'net.randombit.botan.c++0x' (head cbdb2fd418557add29a536f7bdb6e78db16f725c)
| | | | * | | | Use C++0x std::shared_ptr<> instead of TR1'slloyd2009-04-016-50/+43
| | | | | | | |
* | | | | | | | Add missing BOTAN_DLL exports.lloyd2009-12-161-1/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | Move most of the engine headers to internal
* | | | | | | Make many more headers internal-only.lloyd2009-12-163-43/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-162-12/+12
| |_|_|_|_|/ |/| | | | |
* | | | | | Cleanups - remove emails from source files, they should only live inlloyd2009-11-104-40/+21
|/ / / / / | | | | | | | | | | | | | | | credits.txt and thanks.txt. Remove some various bits of formatting weirdness.
* | | | | 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.
* | | | | Avoid using word_add() in gfp_element.cpp, actually more complex than necessary,lloyd2009-10-151-1/+3
|/ / / / | | | | | | | | | | | | and was tickling a bug in the asm versions because of the constant 0.
* | | | Oops, removed assert.h from gfp_element.cpp which uses assert :(lloyd2009-10-071-0/+1
| | | |
* | | | Add 'Distributed under...' text to files missing it. Some format cleanupslloyd2009-10-076-84/+79
| |_|/ |/| |
* | | Fix various auto generated dependencies that were wronglloyd2009-07-171-2/+0
| | |
* | | Add a script that reads the output of print_deps.py and rewriteslloyd2009-07-151-5/+7
|/ / | | | | | | | | | | the info.txt files with the right module dependencies. Apply it across the codebase.
* / Remove unnecessary includes of <iostream>; either delete entirely as notlloyd2009-07-114-2/+4
|/ | | | needed, or replace with <iosfwd> or <ostream> where necessary.
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-307-67/+77
| | | | | | | | | | | | | | | 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 print statements in PointGFp::check_invariants which were triggeredlloyd2008-11-171-19/+0
| | | | | | | when the test failed. I had added them for debugging something long ago. What I thought was an InSiTo ECC test failure was actually a sucessful test, it was making sure an Illegal_Point would be thrown in the conditions tested. So, all seems OK.
* Reformat for shorter lineslloyd2008-11-071-1/+4
|
* Add trailing H__ to some header guards. Line wrap long comment.lloyd2008-10-133-23/+25
|
* Add a new switch to configure.pl --with-tr1-implementation whichlloyd2008-10-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | accepts options 'boost' and 'system'. Now GF(p) math (and indirectly, ECDSA) will be enabled if --with-tr1=boost or --with-tr1=system is passed at build time to enable a shared_ptr implementation. Modules can now specify that they require TR1, in which case they will only be autoloaded if a TR1 implementation was set (they can choose which one to use by checking the feature macros from build.h) The gfpmath module was set to load only on request. That has changed to load automatically (but will only do so if a TR1 impl is set as described above). CVC has also been marked as requiring TR1. (ECDSA/ECDH are not, since they do not use tr1 shared_ptr directly) Update and cleanup help output. Do not print the list of modules in --help anymore (too long); you can still get the list (in an easier to parse format) --module-info. Reorganize the help text so the more useful options are described closer to the top. Fix the --with-endian and --with-unaligned-mem options: they were being accepted but ignored.
* Rename the TR1 choice macros to BOTAN_USE_STD_TR1 and BOTAN_USE_BOOST_TR1.lloyd2008-10-121-3/+3
| | | | | | | | If neither is defined when build.h is included, choose Boost. Reorganize build.h so it is easier to find things, in particular move all of the interesting toggles to the top of the file and all of the long lists of modules and feature test macros to the end.
* Return const references instead of copies in GFpModulus where possiblelloyd2008-10-121-4/+4
|
* Modify CurveGFp::get_{a,b} to return a const reference instead of a copylloyd2008-10-122-5/+5
|
* Enable throwing of Illegal_Point in check_invariantslloyd2008-10-111-2/+2
|
* Remove last use of freestore.h from gfpmath, move it to CVC code which stilllloyd2008-10-115-52/+13
| | | | uses it. Include tr1 header directly in gfp_element.h
* Remove some unused code from freestore.h, including the code that broughlloyd2008-10-111-166/+4
| | | | | in the Boost dependency. So Botan is now back to just requiring TR1 shared_ptr (I think).
* Change GFpElement's scalar multiplication operators to take a u64bit insteadlloyd2008-10-112-28/+25
| | | | of u32bit. Some minor format cleanup.
* Some small changes to GFpElement, including accepting u64bit insteadlloyd2008-10-092-30/+28
| | | | | | | of u32bit to the operator* and operator*= Instead of passing the n_dash array to inner_montg_mult_sos, which only uses the first word, just pass the word directly.
* Add BOTAN_DLL macro to public class definitions that were missing it.lloyd2008-10-095-7/+7
|
* Cleanup of gfp_element.cpplloyd2008-10-091-21/+29
|
* Clean up GF(p) implementation codelloyd2008-10-095-92/+99
|
* Keep gfpmath disabled unless requested due to tr1 deplloyd2008-10-081-1/+1
|
* Partially merge back with InSiTo in an attemp to trace bugslloyd2008-10-087-278/+510
|
* Debug outputlloyd2008-10-081-43/+60
|
* Reformattinglloyd2008-10-081-3/+3
|
* Remove unneeded Botan:: prefixlloyd2008-10-081-1/+1
|
* Split ecdsa module into ecc_key, ecdsa, eckaeglloyd2008-10-081-1/+1
| | | | | Add actual implementations (from InSiTo) for ECDSA_Operation and ECKAEG_Operation.
* Guard uses of ECDSA in the library with BOTAN_HAS_ECDSA macro, so it canlloyd2008-10-011-1/+1
| | | | | | | | be disabled. Disable gfpmath by default due to TR1 dependency (this will automatically turn of ECDSA/ECKAEG, unless gfpmath is explicitly loaded with --enable-module=gfpmath).
* Build GF(p) and ECDSA by default. tr1/memory dependency in math/gfpmathlloyd2008-09-301-1/+1
|
* Forgot info.txt for gfpmathlloyd2008-09-301-0/+20
|
* Move GF(p) math code from pk/ecdsa to math/gfpmathlloyd2008-09-307-0/+2892