1. 14 1月, 2016 1 次提交
    • R
      Add CRYPTO_EX_DATA; remove EC_EXTRA_DATA · 3aef36ff
      Rich Salz 提交于
      Add CRYPTO_EX_DATA add EndC_KEY_[gs]et_method, From Roumen Petrov.
      Had to add various exdata calls to init/copy/free the exdata.
      Had to remove const from some EC functions because exdata isn't
      const-correct. :(
      Also remove EC_EXTRA_DATA and use a union to hold the possible
      pre-computed values and an enum to tell which value is in the
      union. (Rich Salz)
      Reviewed-by: NDr. Stephen Henson <steve@openssl.org>
      3aef36ff
  2. 10 11月, 2015 1 次提交
  3. 04 9月, 2015 1 次提交
  4. 11 8月, 2015 1 次提交
  5. 10 6月, 2015 1 次提交
    • M
      EC_POINT_is_on_curve does not return a boolean · 68886be7
      Matt Caswell 提交于
      The function EC_POINT_is_on_curve does not return a boolean value.
      It returns 1 if the point is on the curve, 0 if it is not, and -1
      on error. Many usages within OpenSSL were incorrectly using this
      function and therefore not correctly handling error conditions.
      
      With thanks to the Open Crypto Audit Project for reporting this issue.
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      68886be7
  6. 05 5月, 2015 1 次提交
    • R
      Use safer sizeof variant in malloc · b4faea50
      Rich Salz 提交于
      For a local variable:
              TYPE *p;
      Allocations like this are "risky":
              p = OPENSSL_malloc(sizeof(TYPE));
      if the type of p changes, and the malloc call isn't updated, you
      could get memory corruption.  Instead do this:
              p = OPENSSL_malloc(sizeof(*p));
      Also fixed a few memset() calls that I noticed while doing this.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      b4faea50
  7. 02 5月, 2015 1 次提交
    • R
      free NULL cleanup -- coda · 25aaa98a
      Rich Salz 提交于
      After the finale, the "real" final part. :)  Do a recursive grep with
      "-B1 -w [a-zA-Z0-9_]*_free" to see if any of the preceeding lines are
      an "if NULL" check that can be removed.
      Reviewed-by: NTim Hudson <tjh@openssl.org>
      25aaa98a
  8. 01 5月, 2015 3 次提交
  9. 26 3月, 2015 1 次提交
  10. 19 2月, 2015 1 次提交
  11. 22 1月, 2015 1 次提交
  12. 17 12月, 2014 1 次提交
    • E
      Build fixes · b597aab8
      Emilia Kasper 提交于
      Various build fixes, mostly uncovered by clang's unused-const-variable
      and unused-function errors.
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      (cherry picked from commit 0e1c318ece3c82e96ae95a34a1badf58198d6b28)
      b597aab8
  13. 09 12月, 2014 1 次提交
  14. 08 12月, 2014 2 次提交
  15. 12 9月, 2014 1 次提交
  16. 22 7月, 2014 1 次提交
  17. 16 9月, 2013 1 次提交
    • B
      Fix overly lenient comparisons: · ca567a03
      Bodo Moeller 提交于
          - EC_GROUP_cmp shouldn't consider curves equal just because
            the curve name is the same. (They really *should* be the same
            in this case, but there's an EC_GROUP_set_curve_name API,
            which could be misused.)
      
          - EC_POINT_cmp shouldn't return 0 for ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
            or EC_R_INCOMPATIBLE_OBJECTS errors because in a cmp API, 0 indicates
            equality (not an error).
      
          Reported by: king cope
      ca567a03
  18. 15 9月, 2011 1 次提交
  19. 15 2月, 2011 1 次提交
    • D
      Reorganise ECC code for inclusion in FIPS module. · 84b08eee
      Dr. Stephen Henson 提交于
      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.
      84b08eee
  20. 13 2月, 2011 1 次提交
  21. 16 3月, 2006 1 次提交
  22. 09 2月, 2006 1 次提交
  23. 09 1月, 2006 1 次提交
  24. 03 9月, 2005 1 次提交
  25. 21 5月, 2005 1 次提交
  26. 16 5月, 2005 1 次提交
    • N
      ecc api cleanup; summary: · 9dd84053
      Nils Larsch 提交于
      - 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
      9dd84053
  27. 09 5月, 2005 1 次提交
  28. 27 4月, 2005 1 次提交
  29. 10 3月, 2005 1 次提交
    • B
      Fix typo · 80c808b9
      Bodo Möller 提交于
      PR: 1017
      Submitted by: ciresh@yahoo.com
      Reviewed by: Nils Larsch
      80c808b9
  30. 14 3月, 2004 1 次提交
    • G
      Convert openssl code not to assume the deprecated form of BN_zero(). · b6358c89
      Geoff Thorpe 提交于
      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).
      b6358c89
  31. 21 7月, 2003 1 次提交
  32. 13 2月, 2003 1 次提交
    • B
      Allow EC_GROUP objects to share precomputation for improved memory · ba729265
      Bodo Möller 提交于
      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
      ba729265
  33. 07 2月, 2003 1 次提交
  34. 28 11月, 2002 1 次提交
  35. 26 8月, 2002 2 次提交
  36. 02 8月, 2002 1 次提交
    • B
      Rename implementations of method functions so that they match · 35b73a1f
      Bodo Möller 提交于
      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 :-)
      35b73a1f