aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/gfpmath/gfp_element.h
Commit message (Collapse)AuthorAgeFilesLines
* Delete gfp_element.h and remove the gfpmath testslloyd2010-02-251-249/+0
|
* Inline GFpElementlloyd2010-02-251-27/+121
|
* Inline some simple GFpElement functions. Remove ostream << operatorlloyd2010-02-251-12/+3
|
* Move Illegal_Transformationlloyd2010-02-251-7/+0
|
* De-mutable PointGFplloyd2010-02-241-1/+1
|
* Remove the montgomery optimizations from GFpElement entirely.lloyd2010-02-241-66/+4
| | | | | | | | This makes things even slower than they were before, but will make refactoring easier. And most of the montgomery code there was duplicates of other code that already existed in the codebase. Anything useful can be pulled back out from history later if needed.
* Remove GFpModulus entirelylloyd2010-02-241-2/+5
|
* Remove UTF-8 chars in commentslloyd2010-02-241-3/+3
|
* in GFpElement remove some mutables and de-const membmer funcs as necessarylloyd2010-02-231-6/+6
|
* Remove use of tr1 entirely from gfpmath.lloyd2010-02-231-78/+9
| | | | | | | Remove a handful of tests which were based on testing the sharing aspects, which are gone now; everything is based on value copies. All tests pass on x86-64 with GCC. Valgrind output looks clean too.
* Remove almost entirely unnecessary friend access from GFpElement tolloyd2010-02-171-4/+0
| | | | | | | | | | | | | GFpModulus. Doing this pointed out what is probably a threading/race bug as well: assigning to a single GFpElement causes it to reset the GFpModulus to new values, but of course the other GFpElements don't know about this. Sharing the GFpModulus was a really really bad design choice by the InSiTo folks and it needs to die. That might end up wasting a bit of memory, but it will probably fix a lot of nasty bugs, and also remove the use of atomic operations which in the long run is going to hurt performance a lot worse than some extra cache use.
* Add copyright and license notes to pretty much every file that didn't have them,lloyd2009-12-311-1/+0
| | | | | | | | 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.
* Make many more headers internal-only.lloyd2009-12-161-21/+19
| | | | | | | | | | | | | 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.
* Cleanups - remove emails from source files, they should only live inlloyd2009-11-101-6/+1
| | | | credits.txt and thanks.txt. Remove some various bits of formatting weirdness.
* Add 'Distributed under...' text to files missing it. Some format cleanupslloyd2009-10-071-30/+30
|
* Remove unnecessary includes of <iostream>; either delete entirely as notlloyd2009-07-111-1/+1
| | | | needed, or replace with <iosfwd> or <ostream> where necessary.
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-301-11/+11
| | | | | | | | | | | | | | | 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 trailing H__ to some header guards. Line wrap long comment.lloyd2008-10-131-9/+9
|
* 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.
* Remove last use of freestore.h from gfpmath, move it to CVC code which stilllloyd2008-10-111-1/+8
| | | | uses it. Include tr1 header directly in gfp_element.h
* Change GFpElement's scalar multiplication operators to take a u64bit insteadlloyd2008-10-111-3/+3
| | | | of u32bit. Some minor format cleanup.
* Some small changes to GFpElement, including accepting u64bit insteadlloyd2008-10-091-3/+3
| | | | | | | 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-091-1/+1
|
* Clean up GF(p) implementation codelloyd2008-10-091-27/+27
|
* Partially merge back with InSiTo in an attemp to trace bugslloyd2008-10-081-63/+59
|
* Move GF(p) math code from pk/ecdsa to math/gfpmathlloyd2008-09-301-0/+308