1. 26 5月, 2023 1 次提交
  2. 26 4月, 2023 1 次提交
    • D
      Fix Timing Oracle in RSA decryption · a98b861d
      Dmitry Belyavskiy 提交于
      A timing based side channel exists in the OpenSSL RSA Decryption
      implementation which could be sufficient to recover a plaintext across
      a network in a Bleichenbacher style attack. To achieve a successful
      decryption an attacker would have to be able to send a very large number
      of trial messages for decryption. The vulnerability affects all RSA
      padding modes: PKCS#1 v1.5, RSA-OEAP and RSASVE.
      
      Patch written by Dmitry Belyavsky and Hubert Kario
      
      CVE-2022-4304
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      Reviewed-by: NTomas Mraz <tomas@openssl.org>
      Signed-off-by: Ncode4lala <fengziteng2@huawei.com>
      Change-Id: Ib81f15484fa3374bf5f50baece50bb36d105d6d7
      a98b861d
  3. 12 4月, 2023 2 次提交
  4. 10 2月, 2023 1 次提交
  5. 10 8月, 2021 1 次提交
  6. 27 2月, 2020 1 次提交
  7. 28 9月, 2019 2 次提交
    • D
      Reorganize local header files · b5acbf91
      Dr. Matthias St. Pierre 提交于
      Apart from public and internal header files, there is a third type called
      local header files, which are located next to source files in the source
      directory. Currently, they have different suffixes like
      
        '*_lcl.h', '*_local.h', or '*_int.h'
      
      This commit changes the different suffixes to '*_local.h' uniformly.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/9681)
      b5acbf91
    • D
      Reorganize private crypto header files · 0c994d54
      Dr. Matthias St. Pierre 提交于
      Currently, there are two different directories which contain internal
      header files of libcrypto which are meant to be shared internally:
      
      While header files in 'include/internal' are intended to be shared
      between libcrypto and libssl, the files in 'crypto/include/internal'
      are intended to be shared inside libcrypto only.
      
      To make things complicated, the include search path is set up in such
      a way that the directive #include "internal/file.h" could refer to
      a file in either of these two directoroes. This makes it necessary
      in some cases to add a '_int.h' suffix to some files to resolve this
      ambiguity:
      
        #include "internal/file.h"      # located in 'include/internal'
        #include "internal/file_int.h"  # located in 'crypto/include/internal'
      
      This commit moves the private crypto headers from
      
        'crypto/include/internal'  to  'include/crypto'
      
      As a result, the include directives become unambiguous
      
        #include "internal/file.h"       # located in 'include/internal'
        #include "crypto/file.h"         # located in 'include/crypto'
      
      hence the superfluous '_int.h' suffixes can be stripped.
      
      The files 'store_int.h' and 'store.h' need to be treated specially;
      they are joined into a single file.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/9681)
      0c994d54
  8. 31 7月, 2019 1 次提交
  9. 28 5月, 2019 1 次提交
  10. 22 3月, 2019 1 次提交
  11. 19 3月, 2019 1 次提交
  12. 30 11月, 2018 1 次提交
  13. 22 11月, 2018 1 次提交
  14. 13 10月, 2018 1 次提交
  15. 11 9月, 2018 1 次提交
  16. 24 8月, 2018 1 次提交
  17. 31 7月, 2018 1 次提交
  18. 14 7月, 2018 1 次提交
  19. 08 12月, 2017 1 次提交
  20. 21 11月, 2017 1 次提交
    • P
      Support multi-prime RSA (RFC 8017) · 665d899f
      Paul Yang 提交于
      * Introduce RSA_generate_multi_prime_key to generate multi-prime
        RSA private key. As well as the following functions:
          RSA_get_multi_prime_extra_count
          RSA_get0_multi_prime_factors
          RSA_get0_multi_prime_crt_params
          RSA_set0_multi_prime_params
          RSA_get_version
      * Support EVP operations for multi-prime RSA
      * Support ASN.1 operations for multi-prime RSA
      * Support multi-prime check in RSA_check_key_ex
      * Support multi-prime RSA in apps/genrsa and apps/speed
      * Support multi-prime RSA manipulation functions
      * Test cases and documentation are added
      * CHANGES is updated
      Reviewed-by: NTim Hudson <tjh@openssl.org>
      Reviewed-by: NBernd Edlinger <bernd.edlinger@hotmail.de>
      (Merged from https://github.com/openssl/openssl/pull/4241)
      665d899f
  21. 25 8月, 2017 2 次提交
  22. 26 6月, 2017 1 次提交
  23. 14 6月, 2017 1 次提交
  24. 08 4月, 2017 1 次提交
  25. 19 6月, 2016 1 次提交
  26. 06 6月, 2016 1 次提交
  27. 18 5月, 2016 1 次提交
  28. 06 4月, 2016 1 次提交
  29. 09 3月, 2016 1 次提交
  30. 08 3月, 2016 1 次提交
  31. 06 2月, 2016 1 次提交
  32. 26 11月, 2015 1 次提交
    • M
      Tighten up BN_with_flags usage and avoid a reachable assert · fd7d2520
      Matt Caswell 提交于
      The function rsa_ossl_mod_exp uses the function BN_with_flags to create a
      temporary copy (local_r1) of a BIGNUM (r1) with modified flags. This
      temporary copy shares some state with the original r1. If the state of r1
      gets updated then local_r1's state will be stale. This was occurring in the
      function so that when local_r1 was freed a call to bn_check_top was made
      which failed an assert due to the stale state. To resolve this we must free
      local_r1 immediately after we have finished using it and not wait until the
      end of the function.
      
      This problem prompted a review of all BN_with_flag usage within the
      codebase. All other usage appears to be correct, although often not
      obviously so. This commit refactors things to make it much clearer for
      these other uses.
      Reviewed-by: NEmilia Käsper <emilia@openssl.org>
      fd7d2520
  33. 18 11月, 2015 1 次提交
  34. 10 11月, 2015 1 次提交
  35. 31 10月, 2015 1 次提交
  36. 08 10月, 2015 1 次提交
  37. 14 5月, 2015 1 次提交