1. 19 6月, 2006 1 次提交
  2. 12 4月, 2006 1 次提交
  3. 14 1月, 2006 1 次提交
  4. 16 12月, 2005 3 次提交
  5. 07 11月, 2005 1 次提交
  6. 23 10月, 2005 1 次提交
  7. 06 10月, 2005 2 次提交
  8. 04 10月, 2005 2 次提交
  9. 29 8月, 2005 1 次提交
  10. 22 8月, 2005 1 次提交
  11. 28 6月, 2005 1 次提交
  12. 27 5月, 2005 1 次提交
  13. 16 5月, 2005 1 次提交
    • B
      Implement fixed-window exponentiation to mitigate hyper-threading · 46a64376
      Bodo Möller 提交于
      timing attacks.
      
      BN_FLG_EXP_CONSTTIME requests this algorithm, and this done by default for
      RSA/DSA/DH private key computations unless
      RSA_FLAG_NO_EXP_CONSTTIME/DSA_FLAG_NO_EXP_CONSTTIME/
      DH_FLAG_NO_EXP_CONSTTIME is set.
      
      Submitted by: Matthew D Wood
      Reviewed by: Bodo Moeller
      46a64376
  14. 11 5月, 2005 1 次提交
    • B
      Fix more error codes. · 8afca8d9
      Bodo Möller 提交于
      (Also improve util/ck_errf.pl script, and occasionally
      fix source code formatting.)
      8afca8d9
  15. 06 5月, 2005 1 次提交
  16. 04 5月, 2005 1 次提交
  17. 27 4月, 2005 3 次提交
    • D
      Port BN_MONT_CTX_set_locked() from stable branch. · 6ec8e63a
      Dr. Stephen Henson 提交于
      The function rsa_eay_mont_helper() has been removed because it is no longer
      needed after this change.
      6ec8e63a
    • N
      some updates for the blinding code; summary: · 800e400d
      Nils Larsch 提交于
      - possibility of re-creation of the blinding parameters after a
        fixed number of uses (suggested by Bodo)
      - calculatition of the rsa::e in case it's absent and p and q
        are present (see bug report #785)
      - improve the performance when if one rsa structure is shared by
        more than a thread (see bug report #555)
      - fix the problem described in bug report #827
      - hide the definition ot the BN_BLINDING structure in bn_blind.c
      800e400d
    • B
      Fix various incorrect error function codes. · aa4ce731
      Bodo Möller 提交于
      ("perl util/ck_errf.pl */*.c */*/*.c" still reports many more.)
      aa4ce731
  18. 23 4月, 2005 1 次提交
  19. 06 7月, 2004 1 次提交
  20. 20 6月, 2004 1 次提交
    • G
      Tidy up, including; · d459e390
      Geoff Thorpe 提交于
      - Remove unused and unuseful debug cruft.
      - Remove unnecessary 'top' fudging from BN_copy().
      - Fix a potential memory leak and simplify the expansion logic in
        BN_bin2bn().
      
      Submitted by: Nils Larsch
      Reviewed by: Geoff Thorpe
      d459e390
  21. 18 6月, 2004 1 次提交
  22. 16 5月, 2004 1 次提交
  23. 18 3月, 2004 1 次提交
    • G
      Variety of belt-tightenings in the bignum code. (Please help test this!) · e042540f
      Geoff Thorpe 提交于
      - Remove some unnecessary "+1"-like fudges. Sizes should be handled
        exactly, as enlarging size parameters causes needless bloat and may just
        make bugs less likely rather than fixing them: bn_expand() macro,
        bn_expand_internal(), and BN_sqr().
      - Deprecate bn_dup_expand() - it's new since 0.9.7, unused, and not that
        useful.
      - Remove unnecessary zeroing of unused bytes in bn_expand2().
      - Rewrite BN_set_word() - it should be much simpler, the previous
        complexities probably date from old mismatched type issues.
      - Add missing bn_check_top() macros in bn_word.c
      - Improve some degenerate case handling in BN_[add|sub]_word(), add
        comments, and avoid a bignum expansion if an overflow isn't possible.
      e042540f
  24. 14 3月, 2004 1 次提交
    • G
      The efforts to eliminate the dual-representation of zero and to ensure · 5d735465
      Geoff Thorpe 提交于
      bignums are passed in and out of functions and APIs in a consistent form
      has highlighted that zero-valued bignums don't need any allocated word
      data. The use of BN_set_word() to initialise a bignum to zero causes
      needless allocation and gives it a return value that must be checked. This
      change converts BN_zero() to a self-contained macro that has no
      return/expression value and does not cause any expansion of bignum data.
      
      Note, it would be tempting to rewrite the deprecated version as a
      success-valued comma expression, such as;
         #define BN_zero(a) ((a)->top = (a)->neg = 0, 1)
      However, this evaluates 'a' twice and would confuse initialisation loops
      (eg. while(..) { BN_zero(bn++) } ). As such, the deprecated version
      continues to use BN_set_word().
      5d735465
  25. 02 12月, 2003 1 次提交
    • G
      BN_FLG_FREE is of extremely dubious usefulness, and is only referred to · 2ae1ea37
      Geoff Thorpe 提交于
      once in the source (where it is set for the benefit of no other code
      whatsoever). I've deprecated the declaration in the header and likewise
      made the use of the flag conditional in bn_lib.c. Note, this change also
      NULLs the 'd' pointer in a BIGNUM when it is reset but not deallocated.
      2ae1ea37
  26. 01 12月, 2003 3 次提交
  27. 07 11月, 2003 1 次提交
  28. 06 11月, 2003 2 次提交
  29. 05 11月, 2003 1 次提交
  30. 04 11月, 2003 1 次提交
  31. 30 10月, 2003 1 次提交
    • G
      BN_CTX is opaque and the static initialiser BN_CTX_init() is not used · 2ce90b9b
      Geoff Thorpe 提交于
      except internally to the allocator BN_CTX_new(), as such this deprecates
      the use of BN_CTX_init() in the API. Moreover, the structure definition of
      BN_CTX is taken out of bn_lcl.h and moved into bn_ctx.c itself.
      
      NDEBUG should probably only be "forced" in the top-level configuration, but
      until it is I will avoid removing it from bn_ctx.c which might surprise
      people with massive slow-downs in their keygens. So I've left it in
      bn_ctx.c but tidied up the preprocessor logic a touch and made it more
      tolerant of debugging efforts.
      2ce90b9b