Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move contents of gfpmath to numbertheory. Adjust dependencies. | lloyd | 2010-02-25 | 4 | -735/+0 |
| | |||||
* | Delete gfp_element.h and remove the gfpmath tests | lloyd | 2010-02-25 | 2 | -250/+0 |
| | |||||
* | Hide MillerRabin_Test class (only used in numthry.cpp) | lloyd | 2010-02-25 | 2 | -2/+3 |
| | | | | | | Inline simple functions in Modular_Reducer Add Modular_Reducer::cube convenience function | ||||
* | Cache the Modular_Reducer of p in CurveGFp; speedup of 3-4x | lloyd | 2010-02-25 | 2 | -8/+11 |
| | |||||
* | Remove GFpElement from check_invariants, remove include | lloyd | 2010-02-25 | 1 | -20/+15 |
| | |||||
* | create_random_point was not used anywhere, so remove it | lloyd | 2010-02-25 | 2 | -28/+0 |
| | |||||
* | s/GFpElement/Modular_Reducer/ in get_affine_{x,y} | lloyd | 2010-02-25 | 1 | -14/+6 |
| | |||||
* | Convert PointGFp::operator+= to using BigInt + Modular_Reducer instead of | lloyd | 2010-02-25 | 1 | -34/+18 |
| | | | | GFpElement | ||||
* | Make PointGFp::mult2_in_place private | lloyd | 2010-02-25 | 2 | -20/+25 |
| | |||||
* | Use Modular_Reducer instead of GFpElement in operator*= | lloyd | 2010-02-25 | 1 | -13/+8 |
| | |||||
* | Inline PointGFp constructors | lloyd | 2010-02-25 | 2 | -51/+13 |
| | |||||
* | In PointGFp::operator==, compare coordinates first, then the curve | lloyd | 2010-02-25 | 1 | -4/+2 |
| | |||||
* | There was only one caller of set_z_to_one (which was get_z_to_one) and | lloyd | 2010-02-25 | 2 | -60/+24 |
| | | | | | only one caller of get_z_to_one (in operator*=). Inline into operator*= and remove. | ||||
* | Rewrite PointGFp::mult2_in_place to use plain BigInt plus a Modular_Reducer | lloyd | 2010-02-25 | 1 | -47/+29 |
| | | | | Clean up PointGFp::operator*= | ||||
* | Hide PointGFp funcs set_z_to_one and get_z_to_one | lloyd | 2010-02-25 | 1 | -15/+15 |
| | |||||
* | Inline GFpElement | lloyd | 2010-02-25 | 3 | -172/+121 |
| | |||||
* | Remove include of unused headers | lloyd | 2010-02-25 | 1 | -3/+0 |
| | |||||
* | Inline some simple GFpElement functions. Remove ostream << operator | lloyd | 2010-02-25 | 2 | -65/+15 |
| | |||||
* | Move Illegal_Transformation | lloyd | 2010-02-25 | 2 | -7/+7 |
| | |||||
* | Remove point_{x,y,z} funcs, hide GFpElement entirely | lloyd | 2010-02-25 | 3 | -33/+56 |
| | |||||
* | CurveGFp: Inline, deleting source file. Store only a,b,p as | lloyd | 2010-02-25 | 5 | -84/+39 |
| | | | | | BigInts. Also reorder constructor args to p, a, b which seems more sensible to me. | ||||
* | Change PointGFp to store BigInts instead of GFpElements | lloyd | 2010-02-25 | 2 | -65/+68 |
| | |||||
* | Rename PointGFp member variables | lloyd | 2010-02-25 | 2 | -74/+74 |
| | |||||
* | Cleanup EC2OSP, remove should-have-been-internal functions | lloyd | 2010-02-25 | 2 | -85/+35 |
| | |||||
* | Convert the PointGFp constructor taking three coordinates (Jacobian scheme) | lloyd | 2010-02-25 | 2 | -10/+13 |
| | | | | to take BigInts instead of GFpElements | ||||
* | Convert PointGFp::get_jac_proj_{x,y,z} to return just the BigInt value, | lloyd | 2010-02-25 | 2 | -10/+9 |
| | | | | not a GFpElement | ||||
* | Convert PointGFp::get_affine_{x,y} to return just the BigInt value | lloyd | 2010-02-25 | 2 | -13/+19 |
| | |||||
* | Remove clutter. Add note about bug in mult by scalar (mult by -1 is wrong) | lloyd | 2010-02-25 | 1 | -8/+5 |
| | |||||
* | Convert 3-arg constructoor of PointGFp to take BigInts instead of | lloyd | 2010-02-25 | 2 | -149/+93 |
| | | | | | | GFpElements. Clean up OS2ECP | ||||
* | Cleanups | lloyd | 2010-02-25 | 1 | -16/+10 |
| | |||||
* | Make compression types an enum | lloyd | 2010-02-25 | 1 | -14/+5 |
| | |||||
* | De-mutable PointGFp | lloyd | 2010-02-24 | 4 | -9/+9 |
| | |||||
* | Inline small funcs. Remove mult2 | lloyd | 2010-02-24 | 2 | -46/+12 |
| | |||||
* | Add BOTAN_DLL exports to some CurveGFp funcs | lloyd | 2010-02-24 | 1 | -2/+2 |
| | |||||
* | Remove the montgomery optimizations from GFpElement entirely. | lloyd | 2010-02-24 | 6 | -561/+29 |
| | | | | | | | | 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 PointGFp::mult_this_secure | lloyd | 2010-02-24 | 2 | -82/+0 |
| | |||||
* | Remove GFpModulus entirely | lloyd | 2010-02-24 | 4 | -180/+52 |
| | |||||
* | In CurveGFp, store just the BigInt mod instead of a GFpModulus | lloyd | 2010-02-24 | 1 | -2/+2 |
| | |||||
* | propagate from branch 'net.randombit.botan' (head ↵ | lloyd | 2010-02-24 | 8 | -1105/+304 |
|\ | | | | | | | | | | | 84baf58b29f3aaaee34e2b873d0040be5a6c4368) to branch 'net.randombit.botan.gost_3410' (head 63cbe3e357c071d7960bfedc31101eff35895285) | ||||
| * | Remove UTF-8 chars in comments | lloyd | 2010-02-24 | 3 | -8/+4 |
| | | |||||
| * | Remove the precomputed z^2, z^3, a*z^4 values from PointGFp | lloyd | 2010-02-23 | 2 | -123/+23 |
| | | |||||
| * | in GFpElement remove some mutables and de-const membmer funcs as necessary | lloyd | 2010-02-23 | 2 | -11/+11 |
| | | |||||
| * | Remove vestigal code in pointgfp for various side-channel countermeasures | lloyd | 2010-02-23 | 1 | -56/+1 |
| | | |||||
| * | Cleanups. Remove PointGFp::mult_loop | lloyd | 2010-02-23 | 2 | -33/+14 |
| | | |||||
| * | Remove use of tr1 entirely from gfpmath. | lloyd | 2010-02-23 | 8 | -911/+298 |
| | | | | | | | | | | | | | | 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 to | lloyd | 2010-02-17 | 3 | -59/+50 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | Clean up exceptions. Remove some unused ones like Config_Error. Make | lloyd | 2010-01-05 | 1 | -2/+2 |
| | | | | | | | | | | | | | | 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, | lloyd | 2009-12-31 | 1 | -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. | ||||
| * | Remove BOTAN_DLL from forward decl, not needed and GCC 4.1 warns | lloyd | 2009-12-30 | 1 | -1/+1 |
| | | |||||
* | | propagate from branch 'net.randombit.botan' (head ↵ | lloyd | 2009-12-24 | 1 | -1/+1 |
|\ \ | |/ |/| | | | | | | | a338abd543caa402c32acd952e865c8ec8e85a69) to branch 'net.randombit.botan.gost_3410' (head d09208e0a933da2df52494876849c542e5a556ca) |