aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec2_smpl.c
Commit message (Collapse)AuthorAgeFilesLines
* PR: 2632Dr. Stephen Henson2011-10-261-1/+1
| | | | | | | | Submitted by: emmanuel.azencot@bull.net Reviewed by: steve Return -1 immediately if not affine coordinates as BN_CTX has not been set up.
* Reorganise ECC code for inclusion in FIPS module.Dr. Stephen Henson2011-02-141-337/+4
| | | | | | | | | | Move compression, point2oct and oct2point functions into separate files. Add a flags field to EC_METHOD. Add a flag EC_FLAGS_DEFAULT_OCT to use the default compession and oct functions (all existing methods do this). This removes dependencies from EC_METHOD while keeping original functionality.
* New option to disable characteristic two fields in EC code.Dr. Stephen Henson2011-02-121-0/+4
|
* PR: 1612Dr. Stephen Henson2011-01-241-0/+3
| | | | | | | Submitted by: Robert Jackson <robert@rjsweb.net> Reviewed by: steve Fix EC_POINT_cmp function for case where b but not a is the point at infinity.
* oops, revert mistakenly committed EC changesDr. Stephen Henson2011-01-191-18/+1
|
* Add additional parameter to dsa_builtin_paramgen to output the generatedDr. Stephen Henson2011-01-191-1/+18
| | | | | | | | seed to: this doesn't introduce any binary compatibility issues as the function is only used internally. The seed output is needed for FIPS 140-2 algorithm testing: the functionality used to be in DSA_generate_parameters_ex() but was removed in OpenSSL 1.0.0
* Always check bn_wexpend() return values for failure (CVE-2009-3245).Bodo Möller2010-02-231-4/+4
| | | | | | | (The CHANGES entry covers the change from PR #2111 as well, submitted by Martin Olsson.) Submitted by: Neel Mehta
* Change array representation of binary polynomials to make GF2m part ofBodo Möller2006-06-181-1/+3
| | | | | | the BN library more generally useful. Submitted by: Douglas Stebila
* fix error found by coverity: check if ctx is != NULL before calling BN_CTX_end()Nils Larsch2006-03-131-1/+2
|
* deFUDify: don't require OPENSSL_EC_BIN_PT_COMPBodo Möller2005-11-151-18/+84
|
* - use BN_set_negative and BN_is_negative instead of BN_set_signNils Larsch2005-04-221-5/+5
| | | | | | and BN_get_sign - implement BN_set_negative as a function - always use "#define BN_is_zero(a) ((a)->top == 0)"
* Using Horner's algorithm to evaluate the ec polynomialGeoff Thorpe2004-07-161-29/+20
| | | | | | (suggested by Adam Young <ayoung@cigital.com>) Submitted by: Nils Larsch
* Make sure we use unsigned constants, or come compilers may complain.Richard Levitte2004-03-151-1/+1
|
* Convert openssl code not to assume the deprecated form of BN_zero().Geoff Thorpe2004-03-131-1/+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).
* implement fast point multiplication with precomputationBodo Möller2003-02-061-3/+7
| | | | | Submitted by: Nils Larsch Reviewed by: Bodo Moeller
* fix warningsBodo Möller2003-01-211-4/+4
| | | | Submitted by: Nils Larsch
* rename some functions to improve consistencyBodo Möller2002-11-231-2/+2
| | | | Submitted by: Sheueling Chang
* implement and use new macros BN_get_sign(), BN_set_sign()Bodo Möller2002-11-041-5/+5
| | | | Submitted by: Nils Larsch
* Sun has agreed to removing the covenant language from most files.Bodo Möller2002-10-291-13/+0
| | | | Submitted by: Sheueling Chang <Sheueling.Chang@Sun.COM>
* remove superfluous codeBodo Möller2002-10-281-9/+7
| | | | Submitted by: Nils Larsch
* make sure 'neg' flag (which does not really matter for GF(2^m), butBodo Möller2002-09-161-0/+5
| | | | | | could cause confusion for ECDSA) is set to zero Submitted by: Sheueling Chang
* less specific interface for EC_GROUP_get_basis_typeBodo Möller2002-08-261-1/+5
| | | | Submitted by: Nils Larsch, Bodo Moeller
* Rename implementations of method functions so that they matchBodo Möller2002-08-021-14/+14
| | | | | | | | | | | | | 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-0/+980
Submitted by: Duglas Stebila <douglas.stebila@sun.com>, Sheueling Chang <sheueling.chang@sun.com> (CHANGES entries by Bodo Moeller)