Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove some needless usages of auto_ptr in CVC | lloyd | 2010-03-02 | 7 | -22/+33 |
| | |||||
* | For PEM encoding ECC domain parameters I had been using the identifier | lloyd | 2010-03-02 | 2 | -60/+60 |
| | | | | | | | | "ECC DOMAIN PARAMETERS", because I couldn't find any other library that offered PEM encoding to be compatible with so I just picked something. Turns out OpenSSL does have PEM encoding of EC params (openssl ecparam), and uses "EC PARAMETERS". As good as anything else, and allows interop, so change to use that. | ||||
* | Make two variants of OS2ECP, one taking pointer + length, and other | lloyd | 2010-03-02 | 3 | -16/+20 |
| | | | | | (inlined) taking a MemoryRegion& that just forwards. This makes it possible to avoid an extra copy in ECDH::derive_key. | ||||
* | Use a single dir for all boost.python objects | lloyd | 2010-03-02 | 1 | -5/+3 |
| | |||||
* | Fix python_pbkdf2 for new signature. | lloyd | 2010-03-02 | 1 | -3/+19 |
| | | | | Add python KDF2 call, patch from Thomas Capricelli | ||||
* | Small cleanups | lloyd | 2010-03-02 | 4 | -23/+21 |
| | |||||
* | Line wrap | lloyd | 2010-03-02 | 1 | -6/+12 |
| | |||||
* | Inline some simple PointGFp functions | lloyd | 2010-03-02 | 2 | -51/+35 |
| | |||||
* | Rename PointGFp::get_jac_proj_{x,y,z} simply get_{x,y,z} | lloyd | 2010-03-02 | 1 | -3/+3 |
| | |||||
* | Add some simple constructors to the EC_ base key types to simplify | lloyd | 2010-03-02 | 8 | -106/+78 |
| | | | | the various implementations | ||||
* | Remove extraneous include | lloyd | 2010-03-02 | 1 | -4/+0 |
| | |||||
* | Rename ECKAEG to ECDH. As far as I can tell they are the same algorithm, | lloyd | 2010-03-02 | 3 | -31/+35 |
| | | | | | I'm not sure where the old name came from though as literally the only hits for it on Google are botan-related. | ||||
* | Kill ECKAEG_Op | lloyd | 2010-03-02 | 12 | -301/+32 |
| | |||||
* | Remove ECDSA_Op and its attendant bits | lloyd | 2010-03-02 | 11 | -347/+45 |
| | |||||
* | Remove auto_ptr from ECC key types | lloyd | 2010-03-02 | 11 | -586/+136 |
| | |||||
* | Remove a fairly useless member of EC_PublicKey that was only used for | lloyd | 2010-03-02 | 7 | -95/+4 |
| | | | | | | | handling ImplicitCA ECDSA keys in the CVC code. Currently dealt with in CVC by simply commenting out the calls - CVC is already pretty broken and I'd much rather have ECC sane and under control and CVC totally broken than ECC remaining in its current state. | ||||
* | Set PEM constructor (taking a string) to default to "". In this case, | lloyd | 2010-03-02 | 2 | -6/+12 |
| | | | | don't initialize. | ||||
* | Move all of the ECC domain parameter sets to policy.cpp, encoded as PEM, | lloyd | 2010-03-02 | 4 | -437/+308 |
| | | | | instead of weird custom format hard-coded in ec_dompar.cpp | ||||
* | Add EC domain contructor eating PEM. Set OID in OID constructor | lloyd | 2010-03-01 | 2 | -3/+17 |
| | |||||
* | Add EC_Domain_Params::PEM_encode | lloyd | 2010-03-01 | 3 | -31/+45 |
| | |||||
* | Kill get_EC_Dom_Pars_by_oid | lloyd | 2010-03-01 | 3 | -62/+49 |
| | |||||
* | Clean up EC_Domain_Params | lloyd | 2010-03-01 | 7 | -187/+147 |
| | |||||
* | Allow creating uninitialized PointGFp and CurveGFps | lloyd | 2010-03-01 | 2 | -0/+10 |
| | |||||
* | Rename mult2_in_place just mult2 (double would be better but is a keyword...) | lloyd | 2010-03-01 | 2 | -6/+6 |
| | |||||
* | Clean up catch and return | lloyd | 2010-03-01 | 1 | -5/+1 |
| | |||||
* | In get_pbkdf_prf, catch Algorithm_Not_Found and return null | lloyd | 2010-03-01 | 1 | -2/+10 |
| | |||||
* | passhash9: Ensure that choose_pbkdf_prf returns a PRF if possible | lloyd | 2010-03-01 | 1 | -2/+8 |
| | |||||
* | Simplify mult2_in_place slightly | lloyd | 2010-02-25 | 1 | -7/+3 |
| | |||||
* | Use a Modular_Reducer in ECDSA op for reductions mod the order of the group | lloyd | 2010-02-25 | 2 | -18/+9 |
| | |||||
* | Move contents of gfpmath to numbertheory. Adjust dependencies. | lloyd | 2010-02-25 | 10 | -21/+4 |
| | |||||
* | 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 | 6 | -84/+84 |
| | | | | | | 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 |
| | |||||
* | Name vars in Modular_Reducer decl | lloyd | 2010-02-25 | 1 | -4/+4 |
| | |||||
* | Inline GFpElement | lloyd | 2010-02-25 | 4 | -175/+122 |
| | |||||
* | Set parallelism defaults. | lloyd | 2010-02-25 | 6 | -1/+15 |
| | | | | | | | | Default unless specified is now 4. For SIMD code, use 2x the number of blocks which are processed in parallel using SIMD by that cipher. It may make sense to increase this to 4x or even more, further experimentation is necessary. | ||||
* | Instead of the mode parallelism being specified via macros, have it | lloyd | 2010-02-25 | 7 | -33/+37 |
| | | | | | | | | | depend on the particular implementation. Add a new virtual function to BlockCipher named parallelism that returns the number of blocks the cipher object could or might want to process in parallel. Currently set to 1 by default but may make sense to increase this for even scalar implementations since it seems like better caching behavior makes it a win. | ||||
* | 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 |
| |