1. 14 5月, 2015 1 次提交
  2. 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
  3. 10 2月, 2015 1 次提交
  4. 22 1月, 2015 1 次提交
  5. 06 1月, 2015 1 次提交
  6. 17 12月, 2014 1 次提交
  7. 08 12月, 2014 1 次提交
  8. 19 8月, 2014 1 次提交
  9. 28 1月, 2011 2 次提交
  10. 15 6月, 2009 1 次提交
  11. 30 4月, 2005 1 次提交
  12. 27 4月, 2005 1 次提交
  13. 19 9月, 2004 1 次提交
  14. 20 4月, 2004 1 次提交
  15. 25 3月, 2004 1 次提交
    • 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
  16. 14 3月, 2004 1 次提交
  17. 09 3月, 2004 1 次提交
    • G
      More changes coming out of the bignum auditing. BN_CTX_get() should ideally · e7716b7a
      Geoff Thorpe 提交于
      return a "zero" bignum as BN_new() does - so reset 'top'. During
      BN_CTX_end(), released bignums should be consistent so enforce this in
      debug builds. Also, reduce the number of wasted BN_clear_free() calls from
      BN_CTX_end() (typically by 75% or so).
      
      Submitted by: Nils Larsch
      Reviewed by: Geoff Thorpe, Ulf Möller
      e7716b7a
  18. 05 11月, 2003 1 次提交
  19. 30 10月, 2003 2 次提交
    • G
      When a BN_CTX is used for temporary workspace, the variables are sometimes · 5f747c7f
      Geoff Thorpe 提交于
      left in an inconsistent state when they are released for later reuse. This
      change resets the BIGNUMs when they are released back to the context.
      5f747c7f
    • 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
  20. 08 3月, 2001 1 次提交
  21. 08 11月, 2000 1 次提交
  22. 02 6月, 2000 1 次提交
    • R
      There have been a number of complaints from a number of sources that names · 26a3a48d
      Richard Levitte 提交于
      like Malloc, Realloc and especially Free conflict with already existing names
      on some operating systems or other packages.  That is reason enough to change
      the names of the OpenSSL memory allocation macros to something that has a
      better chance of being unique, like prepending them with OPENSSL_.
      
      This change includes all the name changes needed throughout all C files.
      26a3a48d
  23. 06 2月, 2000 3 次提交
  24. 05 2月, 2000 2 次提交
  25. 04 12月, 1999 1 次提交
    • B
      Add functions des_set_key_checked, des_set_key_unchecked. · cddfe788
      Bodo Möller 提交于
      Never use des_set_key (it depends on the global variable des_check_key),
      but usually des_set_key_unchecked.
      Only destest.c bothered to look at the return values of des_set_key,
      but it did not set des_check_key -- if it had done so,
      most checks would have failed because of wrong parity and
      because of weak keys.
      cddfe788
  26. 16 5月, 1999 1 次提交
    • B
      Change type of various DES function arguments from des_cblock · edf0bfb5
      Bodo Möller 提交于
      (meaning pointer to char) to des_cblock * (meaning pointer to
      array with 8 char elements), which allows the compiler to
      do more typechecking.  (The changed argument types were of type
      des_cblock * back in SSLeay, and a lot of ugly casts were
      used then to turn them into pointers to elements; but it can be
      done without those casts.)
      
      Introduce new type const_des_cblock -- before, the pointers rather
      than the elements pointed to were declared const, and for
      some reason gcc did not complain about this (but some other
      compilers did).
      edf0bfb5
  27. 20 4月, 1999 1 次提交
  28. 14 2月, 1999 1 次提交
  29. 21 12月, 1998 2 次提交