summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec_lib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix problems found by coverity: remove useless codeNils Larsch2006-03-151-1/+1
|
* remove unnecessary checkNils Larsch2006-02-081-1/+1
|
* Some error code cleanups (SSL lib. used SSL_R_... codes reserved for alerts)Bodo Möller2006-01-081-1/+1
|
* fix function name in errorNils Larsch2005-09-031-1/+1
|
* fix typo, add prototypeNils Larsch2005-05-211-1/+1
|
* ecc api cleanup; summary:Nils Larsch2005-05-161-30/+27
| | | | | | | | | | - hide the EC_KEY structure definition in ec_lcl.c + add some functions to use/access the EC_KEY fields - change the way how method specific data (ecdsa/ecdh) is attached to a EC_KEY - add ECDSA_sign_ex and ECDSA_do_sign_ex functions with additional parameters for pre-computed values - rebuild libeay.num from 0.9.7
* give EC_GROUP_*_nid functions a more meaningful nameNils Larsch2005-05-091-4/+4
| | | | | EC_GROUP_get_nid -> EC_GROUP_get_curve_name EC_GROUP_set_nid -> EC_GROUP_set_curve_name
* Fix various incorrect error function codes.Bodo Möller2005-04-261-2/+2
| | | | ("perl util/ck_errf.pl */*.c */*/*.c" still reports many more.)
* Fix typoBodo Möller2005-03-091-1/+1
| | | | | | PR: 1017 Submitted by: ciresh@yahoo.com Reviewed by: Nils Larsch
* Convert openssl code not to assume the deprecated form of BN_zero().Geoff Thorpe2004-03-141-2/+2
| | | | | | | | | Remove certain redundant BN_zero() initialisations, because BN_CTX_get(), BN_init(), [etc] already initialise to zero. Correct error checking in bn_sqr.c, and be less wishy-wash about how/why the result's 'top' value is set (note also, 'max' is always > 0 at this point).
* new function EC_GROUP_cmp() (used by EVP_PKEY_cmp())Bodo Möller2003-07-211-0/+75
| | | | Submitted by: Nils Larsch
* Allow EC_GROUP objects to share precomputation for improved memoryBodo Möller2003-02-121-55/+132
| | | | | | | | | | | | | | efficiency (EC_PRE_COMP objects are now constant once completed). Extend 'extra_data' API to support arbitrarily many slots (although we need only one at the moment). Modify EC internal 'extra_data' API: EC_GROUP_[clear_]free_extra_data now frees only a single slot (the previous functions are available as EC_GROUP_[clear_]free_all_extra_data). Submitted by: Nils Larsch Reviewed by: Bodo Moeller
* implement fast point multiplication with precomputationBodo Möller2003-02-061-1/+58
| | | | | Submitted by: Nils Larsch Reviewed by: Bodo Moeller
* Cleanse memory using the new OPENSSL_cleanse() function.Richard Levitte2002-11-281-3/+3
| | | | I've covered all the memset()s I felt safe modifying, but may have missed some.
* move EC_GROUP_get_basis_type() from ec_lib.c to ec_asn1.cBodo Möller2002-08-261-39/+0
|
* ASN1 for binary curvesBodo Möller2002-08-261-0/+39
| | | | Submitted by: Nils Larsch
* Rename implementations of method functions so that they matchBodo Möller2002-08-021-62/+31
| | | | | | | | | | | | | the new method names where _GF... suffixes have been removed. Revert changes to ..._{get/set}_Jprojective_coordinates_...: The current implementation for ECC over binary fields does not use projective coordinates, and if it did, it would not use Jacobian projective coordinates; so it's OK to use the ..._GFp prefix for all this. Add author attributions to some files so that it doesn't look as if Sun wrote all of this :-)
* add support for elliptic curves over binary fieldsBodo Möller2002-08-021-14/+178
| | | | | | | Submitted by: Duglas Stebila <douglas.stebila@sun.com>, Sheueling Chang <sheueling.chang@sun.com> (CHANGES entries by Bodo Moeller)
* Implement handling of EC parameter seeds (new functionsBodo Möller2002-06-181-1/+34
| | | | | | | | EC_GROUP_set_seed(), EC_GROUP_get0_seed(), EC_GROUP_get_seed_len()). New functions ECPKParameters_print(), ECPKParameters_print_fp(). Submitted by: Nils Larsch
* simplify asn1_flagBodo Möller2002-06-121-6/+21
| | | | | Submitted by: Nils Larsch Reviewed by: Bodo Moeller
* move ECC ASN1 that is not specific to ECDSA into crypto/ec/,Bodo Möller2002-06-101-0/+52
| | | | | | and make some appropriate changes to the EC library. Submitted by: Nils Larsch
* accept NULL in 'free' functionsBodo Möller2002-05-211-0/+8
|
* Change internals of the EC library so that the functionsBodo Möller2002-05-081-44/+91
| | | | | | | | EC_GROUP_{set_generator,get_generator,get_order,get_cofactor} are implemented directly in crypto/ec/ec_lib.c and not dispatched to methods. Also fix EC_GROUP_copy to copy the NID.
* New function EC_GROUP_check_discriminant().Bodo Möller2002-03-201-4/+4
| | | | | | Restructure implementation of EC_GROUP_check(). Submitted by: Nils Larsch
* Fix bugs and typos.Bodo Möller2002-03-181-11/+23
| | | | | | | | | Add some WTLS curves. New function EC_GROUP_check() (this will probably be implemented differently soon). Submitted by: Nils Larsch Reviewed by: Bodo Moeller
* reference counting for EC_GROUP structures is not needed (at theBodo Möller2002-03-061-18/+4
| | | | moment at least), so remove it
* ECDSA supportBodo Möller2002-02-131-1/+1
| | | | Submitted by: Nils Larsch <nla@trustcenter.de>
* add support for named curvesBodo Möller2002-02-131-1/+27
| | | | Submitted by: Nils Larsch <nla@trustcenter.de>
* More EC stuff, including EC_POINTs_mul() for simultaneous scalarBodo Möller2001-03-111-2/+68
| | | | multiplication of an arbitrary number of points.
* More method functions for elliptic curves,Bodo Möller2001-03-081-14/+25
| | | | and an ectest.c that actually tests something.
* Let EC_POINT_copy do nothing if dest==srcBodo Möller2001-03-081-0/+2
|
* More 'TODO' items.Bodo Möller2001-03-081-1/+83
|
* More method functions for EC_GFp_simple_method.Bodo Möller2001-03-081-3/+51
|
* More method functions.Bodo Möller2001-03-071-1/+1
|
* Optimized EC_METHODs need specific 'set_curve' and 'free' functions.Bodo Möller2001-03-071-1/+1
|
* extra_data 'mixin'.Bodo Möller2001-03-071-0/+89
| | | | (This will be used for Lim/Lee precomputation data.)
* Oops ...Bodo Möller2001-03-071-1/+3
|
* In clear_free, clear the complete structure just in caseBodo Möller2001-03-071-0/+2
| | | | the method misses something.
* Implement dispatcher for EC_GROUP and EC_POINT method functions.Bodo Möller2001-03-071-1/+288
| | | | Initial EC_GROUP_new_curve_GFp implementation.
* Add yet another (still empty) source code file that I forgot.Bodo Möller2001-03-051-2/+0
|
* Move ec.h to ec2.h because it is not compatible with what we will use.Bodo Möller2001-03-051-0/+59
Add EC vaporware: change relevant Makefiles and add some empty source files. "make update".