1. 20 7月, 2023 1 次提交
    • M
      Fix DH_check() excessive time with over sized modulus · 9a81b024
      Matt Caswell 提交于
      The DH_check() function checks numerous aspects of the key or parameters
      that have been supplied. Some of those checks use the supplied modulus
      value even if it is excessively large.
      
      There is already a maximum DH modulus size (10,000 bits) over which
      OpenSSL will not generate or derive keys. DH_check() will however still
      perform various tests for validity on such a large modulus. We introduce a
      new maximum (32,768) over which DH_check() will just fail.
      
      An application that calls DH_check() and supplies a key or parameters
      obtained from an untrusted source could be vulnerable to a Denial of
      Service attack.
      
      The function DH_check() is itself called by a number of other OpenSSL
      functions. An application calling any of those other functions may
      similarly be affected. The other functions affected by this are
      DH_check_ex() and EVP_PKEY_param_check().
      
      CVE-2023-3446
      Reviewed-by: NPaul Dale <pauli@openssl.org>
      Reviewed-by: NTom Cosgrove <tom.cosgrove@arm.com>
      Reviewed-by: NBernd Edlinger <bernd.edlinger@hotmail.de>
      Reviewed-by: NTomas Mraz <tomas@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/21451)
      
      (cherry picked from commit 9e0094e2aa1b3428a12d5095132f133c078d3c3d)
      Signed-off-by: Ncode4lala <fengziteng2@huawei.com>
      9a81b024
  2. 12 4月, 2023 2 次提交
  3. 10 8月, 2021 1 次提交
  4. 27 2月, 2020 1 次提交
  5. 18 5月, 2018 1 次提交
  6. 21 3月, 2018 1 次提交
  7. 13 2月, 2018 1 次提交
  8. 10 2月, 2018 1 次提交
  9. 20 11月, 2017 1 次提交
  10. 12 10月, 2017 3 次提交
  11. 08 6月, 2017 1 次提交
    • R
      make error tables const and separate header file · 52df25cf
      Rich Salz 提交于
      Run perltidy on util/mkerr
      Change some mkerr flags, write some doc comments
      Make generated tables "const" when genearting lib-internal ones.
      Add "state" file for mkerr
      Renerate error tables and headers
      Rationalize declaration of ERR_load_XXX_strings
      Fix out-of-tree build
      Add -static; sort flags/vars for options.
      Also tweak code output
      Moved engines/afalg to engines (from master)
      Use -static flag
      Standard engine #include's of errors
      Don't linewrap err string tables unless necessary
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/3392)
      52df25cf
  12. 27 4月, 2017 1 次提交
  13. 04 4月, 2017 1 次提交
  14. 26 1月, 2017 1 次提交
  15. 21 7月, 2016 1 次提交
  16. 16 6月, 2016 1 次提交
  17. 06 6月, 2016 1 次提交
  18. 24 5月, 2016 1 次提交
  19. 18 5月, 2016 2 次提交
  20. 29 4月, 2016 1 次提交
  21. 09 4月, 2016 2 次提交
  22. 05 4月, 2016 2 次提交
  23. 21 3月, 2016 1 次提交
  24. 10 3月, 2016 1 次提交
  25. 08 3月, 2016 1 次提交
  26. 29 1月, 2016 1 次提交
  27. 28 1月, 2016 1 次提交
    • M
      Prevent small subgroup attacks on DH/DHE · b128abc3
      Matt Caswell 提交于
      Historically OpenSSL only ever generated DH parameters based on "safe"
      primes. More recently (in version 1.0.2) support was provided for
      generating X9.42 style parameter files such as those required for RFC
      5114 support. The primes used in such files may not be "safe". Where an
      application is using DH configured with parameters based on primes that
      are not "safe" then an attacker could use this fact to find a peer's
      private DH exponent. This attack requires that the attacker complete
      multiple handshakes in which the peer uses the same DH exponent.
      
      A simple mitigation is to ensure that y^q (mod p) == 1
      
      CVE-2016-0701
      
      Issue reported by Antonio Sanso.
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      b128abc3
  28. 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
  29. 08 1月, 2016 1 次提交
  30. 02 12月, 2015 1 次提交
  31. 30 9月, 2015 1 次提交
    • R
      Make update / libeay.num fix · 75f648aa
      Rich Salz 提交于
      Looks like someone forgot to do a "make update" since crypto/ts/Makefile
      keeps changing.  So include that.
      
      Second is that the declare_dh_bn macro fools the libeay.num script.
      The declarations are only needed in one file (dh_rfc5114) so remove
      them from the header and put the "raw" declarations directly into that
      file.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      75f648aa
  32. 20 9月, 2015 1 次提交
  33. 11 9月, 2015 1 次提交
  34. 04 9月, 2015 1 次提交