1. 28 3月, 2004 1 次提交
  2. 27 3月, 2004 1 次提交
  3. 25 3月, 2004 2 次提交
    • G
      Replace the BN_CTX implementation with my current work. I'm leaving the · 5c98b2ca
      Geoff Thorpe 提交于
      little TODO list in there as well as the debugging code (only enabled if
      BN_CTX_DEBUG is defined).
      
      I'd appreciate as much review and testing as can be spared for this. I'll
      commit some changes to other parts of the bignum code shortly to make
      better use of this implementation (no more fixed size limitations). Note
      also that under identical optimisations, I'm seeing a noticable speed
      increase over openssl-0.9.7 - so any feedback to confirm/deny this on other
      systems would also be most welcome.
      5c98b2ca
    • G
      By adding a BN_CTX parameter to the 'rsa_mod_exp' callback, private key · 46ef873f
      Geoff Thorpe 提交于
      operations no longer require two distinct BN_CTX structures. This may put
      more "strain" on the current BN_CTX implementation (which has a fixed limit
      to the number of variables it will hold), but so far this limit is not
      triggered by any of the tests pass and I will be changing BN_CTX in the
      near future to avoid this problem anyway.
      
      This also changes the default RSA implementation code to use the BN_CTX in
      favour of initialising some of its variables locally in each function.
      46ef873f
  4. 23 3月, 2004 1 次提交
  5. 18 3月, 2004 1 次提交
  6. 16 3月, 2004 1 次提交
  7. 14 3月, 2004 2 次提交
  8. 08 3月, 2004 1 次提交
  9. 06 3月, 2004 1 次提交
  10. 20 2月, 2004 1 次提交
  11. 01 2月, 2004 1 次提交
  12. 10 11月, 2003 1 次提交
  13. 05 11月, 2003 1 次提交
  14. 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
  15. 29 10月, 2003 4 次提交
    • G
      Relax some over-zealous constification that gave some lhash-based code no · 8dc344cc
      Geoff Thorpe 提交于
      choice but to have to cast away "const" qualifiers from their prototypes.
      This does not remove constification restrictions from hash/compare
      callbacks, but allows destructor commands to be run over a tables' elements
      without bad casts.
      8dc344cc
    • G
      For whatever reason (compiler or header bugs), at least one commonly-used · 0991f070
      Geoff Thorpe 提交于
      linux system (namely mine) chokes on our definitions and uses of the "HZ"
      symbol in crypto/tmdiff.[ch] and apps/speed.c as a "bad function cast"
      (when in fact there is no function casting involved at all). In both cases,
      it is easily worked around by not defining a cast into the macro and
      jiggling the expressions slightly.
      
      In addition - this highlights some cruft in openssl that needs sorting out.
      The tmdiff.h header is exported as part of the openssl API despite the fact
      that it is ugly as the driven sludge and not used anywhere in the library,
      applications, or utilities. More weird still, almost identical code exists
      in apps/speed.c though it looks to be slightly tweaked - so either tmdiff
      should be updated and used by speed.c, or it should be dumped because it's
      obviously not useful enough.
      
      Rather than removing it for now, I've changed the API for tmdiff to at
      least make sense. This involves taking the object type (MS_TM) from the
      implementation and using it in the header rather than using "char *" in the
      API and casting mercilessly in the code (ugh). If someone doesn't like
      "MS_TM" and the "ms_time_***" naming, by all means change it. This should
      be a harmless improvement, because the existing API is clearly not very
      useful (eg. we reimplement it rather than using it in our own utils).
      
      However, someone still needs to take a hack at consolidating speed.c and
      tmdiff.[ch] somehow.
      0991f070
    • G
      Update any code that was using deprecated functions so that everything builds · 2aaec9cc
      Geoff Thorpe 提交于
      and links with OPENSSL_NO_DEPRECATED defined.
      2aaec9cc
    • G
      When OPENSSL_NO_DEPRECATED is defined, deprecated functions are (or should · 9d473aa2
      Geoff Thorpe 提交于
      be) precompiled out in the API headers. This change is to ensure that if
      it is defined when compiling openssl, the deprecated functions aren't
      implemented either.
      9d473aa2
  16. 12 10月, 2003 1 次提交
  17. 11 10月, 2003 2 次提交
  18. 01 10月, 2003 1 次提交
  19. 25 9月, 2003 1 次提交
    • R
      Fix prime generation loop in crypto/bn/bn_prime.pl by making · 6bd27f86
      Ralf S. Engelschall 提交于
      sure the loop does correctly stop and breaking ("division by zero")
      modulus operations are not performed. The (pre-generated) prime
      table crypto/bn/bn_prime.h was already correct, but it could not be
      re-generated on some platforms because of the "division by zero"
      situation in the script.
      6bd27f86
  20. 04 9月, 2003 3 次提交
  21. 22 7月, 2003 2 次提交
  22. 21 7月, 2003 2 次提交
  23. 20 6月, 2003 3 次提交
  24. 12 6月, 2003 2 次提交
  25. 10 6月, 2003 1 次提交
  26. 03 6月, 2003 1 次提交
  27. 02 6月, 2003 1 次提交