1. 16 12月, 2005 2 次提交
  2. 07 11月, 2005 1 次提交
  3. 23 10月, 2005 1 次提交
  4. 06 10月, 2005 2 次提交
  5. 04 10月, 2005 2 次提交
  6. 29 8月, 2005 1 次提交
  7. 22 8月, 2005 1 次提交
  8. 28 6月, 2005 1 次提交
  9. 27 5月, 2005 1 次提交
  10. 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
  11. 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
  12. 06 5月, 2005 1 次提交
  13. 04 5月, 2005 1 次提交
  14. 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
  15. 23 4月, 2005 1 次提交
  16. 06 7月, 2004 1 次提交
  17. 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
  18. 18 6月, 2004 1 次提交
  19. 16 5月, 2004 1 次提交
  20. 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
  21. 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
  22. 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
  23. 01 12月, 2003 3 次提交
  24. 07 11月, 2003 1 次提交
  25. 06 11月, 2003 2 次提交
  26. 05 11月, 2003 1 次提交
  27. 04 11月, 2003 1 次提交
  28. 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
  29. 02 4月, 2003 1 次提交
  30. 09 12月, 2002 1 次提交
    • G
      Nils Larsch submitted; · e1898724
      Geoff Thorpe 提交于
        - a patch to fix a memory leak in rsa_gen.c
        - a note about compiler warnings with unions
        - a note about improving structure element names
      
      This applies his patch and implements a solution to the notes.
      e1898724
  31. 08 12月, 2002 1 次提交
    • G
      This is a first-cut at improving the callback mechanisms used in · e9224c71
      Geoff Thorpe 提交于
      key-generation and prime-checking functions. Rather than explicitly passing
      callback functions and caller-defined context data for the callbacks, a new
      structure BN_GENCB is defined that encapsulates this; a pointer to the
      structure is passed to all such functions instead.
      
      This wrapper structure allows the encapsulation of "old" and "new" style
      callbacks - "new" callbacks return a boolean result on the understanding
      that returning FALSE should terminate keygen/primality processing.  The
      BN_GENCB abstraction will allow future callback modifications without
      needing to break binary compatibility nor change the API function
      prototypes. The new API functions have been given names ending in "_ex" and
      the old functions are implemented as wrappers to the new ones.  The
      OPENSSL_NO_DEPRECATED symbol has been introduced so that, if defined,
      declaration of the older functions will be skipped. NB: Some
      openssl-internal code will stick with the older callbacks for now, so
      appropriate "#undef" logic will be put in place - this is in case the user
      is *building* openssl (rather than *including* its headers) with this
      symbol defined.
      
      There is another change in the new _ex functions; the key-generation
      functions do not return key structures but operate on structures passed by
      the caller, the return value is a boolean. This will allow for a smoother
      transition to having key-generation as "virtual function" in the various
      ***_METHOD tables.
      e9224c71
  32. 04 11月, 2002 1 次提交