1. 20 7月, 2017 1 次提交
  2. 19 7月, 2017 1 次提交
  3. 15 7月, 2017 1 次提交
    • R
      Start to overhaul RAND API · da8fc25a
      Rich Salz 提交于
      Remove unused rand_hw_xor, MD/EVP indirection
      Make rand_pseudo same as rand.
      Cleanup formatting and ifdef control
      Rename some things:
          - rand_meth to openssl_rand_meth; make it global
          - source file
          - lock/init functions, start per-thread state
          - ossl_meth_init to ossl_rand_init
      Put state into RAND_STATE structure
      And put OSSL_RAND_STATE into ossl_typ.h
      Use "randomness" instead of "entropy"
      Reviewed-by: NBen Kaduk <kaduk@mit.edu>
      (Merged from https://github.com/openssl/openssl/pull/3758)
      da8fc25a
  4. 20 6月, 2017 1 次提交
  5. 10 4月, 2017 1 次提交
  6. 07 4月, 2017 2 次提交
  7. 06 4月, 2017 1 次提交
  8. 28 2月, 2017 1 次提交
    • E
      Clean up references to FIPS · b53338cb
      Emilia Kasper 提交于
      This removes the fips configure option. This option is broken as the
      required FIPS code is not available.
      
      FIPS_mode() and FIPS_mode_set() are retained for compatibility, but
      FIPS_mode() always returns 0, and FIPS_mode_set() can only be used to
      turn FIPS mode off.
      Reviewed-by: NStephen Henson <steve@openssl.org>
      b53338cb
  9. 18 5月, 2016 1 次提交
  10. 13 4月, 2016 3 次提交
  11. 21 3月, 2016 1 次提交
  12. 26 2月, 2016 1 次提交
  13. 27 1月, 2016 1 次提交
    • R
      Remove /* foo.c */ comments · 34980760
      Rich Salz 提交于
      This was done by the following
              find . -name '*.[ch]' | /tmp/pl
      where /tmp/pl is the following three-line script:
              print unless $. == 1 && m@/\* .*\.[ch] \*/@;
              close ARGV if eof; # Close file to reset $.
      
      And then some hand-editing of other files.
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      34980760
  14. 08 1月, 2016 1 次提交
  15. 07 1月, 2016 1 次提交
  16. 10 11月, 2015 1 次提交
  17. 31 10月, 2015 1 次提交
  18. 14 5月, 2015 1 次提交
  19. 01 5月, 2015 1 次提交
    • R
      free cleanup almost the finale · 4b45c6e5
      Rich Salz 提交于
      Add OPENSSL_clear_free which merges cleanse and free.
      (Names was picked to be similar to BN_clear_free, etc.)
      Removed OPENSSL_freeFunc macro.
      Fixed the small simple ones that are left:
              CRYPTO_free CRYPTO_free_locked OPENSSL_free_locked
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      4b45c6e5
  20. 25 3月, 2015 1 次提交
    • M
      Deprecate RAND_pseudo_bytes · 302d38e3
      Matt Caswell 提交于
      The justification for RAND_pseudo_bytes is somewhat dubious, and the reality
      is that it is frequently being misused. RAND_bytes and RAND_pseudo_bytes in
      the default implementation both end up calling ssleay_rand_bytes. Both may
      return -1 in an error condition. If there is insufficient entropy then
      both will return 0, but RAND_bytes will additionally add an error to the
      error queue. They both return 1 on success.
      Therefore the fundamental difference between the two is that one will add an
      error to the error queue with insufficient entory whilst the other will not.
      Frequently there are constructions of this form:
      
      if(RAND_pseudo_bytes(...) <= 1)
      	goto err;
      
      In the above form insufficient entropy is treated as an error anyway, so
      RAND_bytes is probably the better form to use.
      
      This form is also seen:
      if(!RAND_pseudo_bytes(...))
      	goto err;
      
      This is technically not correct at all since a -1 return value is
      incorrectly handled - but this form will also treat insufficient entropy as
      an error.
      
      Within libssl it is required that you have correctly seeded your entropy
      pool and so there seems little benefit in using RAND_pseudo_bytes.
      Similarly in libcrypto many operations also require a correctly seeded
      entropy pool and so in most interesting cases you would be better off
      using RAND_bytes anyway. There is a significant risk of RAND_pseudo_bytes
      being incorrectly used in scenarios where security can be compromised by
      insufficient entropy.
      
      If you are not using the default implementation, then most engines use the
      same function to implement RAND_bytes and RAND_pseudo_bytes in any case.
      
      Given its misuse, limited benefit, and potential to compromise security,
      RAND_pseudo_bytes has been deprecated.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      302d38e3
  21. 22 1月, 2015 1 次提交
  22. 11 1月, 2014 1 次提交
  23. 23 8月, 2012 1 次提交
    • D
      PR: 2786 · 0db17852
      Dr. Stephen Henson 提交于
      Reported by: Tomas Mraz <tmraz@redhat.com>
      
      Treat a NULL value passed to drbg_free_entropy callback as non-op. This
      can happen if the call to fips_get_entropy fails.
      0db17852
  24. 22 6月, 2011 1 次提交
  25. 24 4月, 2011 2 次提交
  26. 21 4月, 2011 1 次提交
  27. 07 4月, 2011 1 次提交
  28. 05 4月, 2011 1 次提交
  29. 26 1月, 2011 1 次提交
  30. 12 11月, 2008 1 次提交
  31. 02 11月, 2008 1 次提交
  32. 24 9月, 2007 1 次提交
  33. 03 3月, 2007 1 次提交
    • L
      Initialize "buf" to 0 to make valgrind happy :-) · 1fcfa222
      Lutz Jänicke 提交于
      Note: the RAND_bytes() manual page says:
       RAND_bytes() puts num cryptographically strong pseudo-random bytes into buf.
      It does not talk about using the previous contents of buf so we are working
      as documented.
      1fcfa222
  34. 31 1月, 2003 1 次提交
  35. 26 9月, 2001 1 次提交
    • G
      This commits changes to various parts of libcrypto required by the recent · cb78486d
      Geoff Thorpe 提交于
      ENGINE surgery. DH, DSA, RAND, and RSA now use *both* "method" and ENGINE
      pointers to manage their hooking with ENGINE. Previously their use of
      "method" pointers was replaced by use of ENGINE references. See
      crypto/engine/README for details.
      
      Also, remove the ENGINE iterations from evp_test - even when the
      cipher/digest code is committed in, this functionality would require a
      different set of API calls.
      cb78486d
  36. 21 6月, 2001 1 次提交
    • D
      · ed5538dc
      Dr. Stephen Henson 提交于
      Fix memory leak when RAND is used: need to cleanup
      RANDs ENGINE reference in ENGINE_cleanup().
      ed5538dc