1. 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
  2. 16 3月, 2004 5 次提交
  3. 14 3月, 2004 3 次提交
    • 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
    • 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
    • G
      Document a change I'd already made, and at the same time, correct the · 9e051bac
      Geoff Thorpe 提交于
      change to work properly; BN_zero() should set 'neg' to zero as well as
      'top' to match the behaviour of BN_new().
      9e051bac
  4. 13 3月, 2004 1 次提交
    • A
      IRIX 6.x shared build fix-up. · 30fbcaa2
      Andy Polyakov 提交于
      For reference. Note that both cc and gcc support -Wl flag, but we can't
      use -Wl,-[not]all with both drivers, because cc rearranges options
      passed through -Wl. We can't use -Wl,-all,libcrypto.a,-notall with cc
      either, because it refuses to start with "no input" error.
      30fbcaa2
  5. 10 3月, 2004 1 次提交
  6. 09 3月, 2004 3 次提交
  7. 08 3月, 2004 1 次提交
  8. 06 3月, 2004 5 次提交
  9. 05 3月, 2004 1 次提交
    • D
      Typos. · 91180d45
      Dr. Stephen Henson 提交于
      Reported by: Jose Castejon-Amenedo <Jose.Castejon-Amenedo@hp.com>
      91180d45
  10. 04 3月, 2004 1 次提交
  11. 02 3月, 2004 4 次提交
  12. 01 3月, 2004 2 次提交
  13. 28 2月, 2004 1 次提交
  14. 27 2月, 2004 3 次提交
  15. 23 2月, 2004 2 次提交
  16. 20 2月, 2004 1 次提交
  17. 11 2月, 2004 1 次提交
  18. 08 2月, 2004 1 次提交
  19. 07 2月, 2004 1 次提交
  20. 01 2月, 2004 1 次提交
  21. 30 1月, 2004 1 次提交