1. 10 8月, 2020 1 次提交
  2. 09 8月, 2020 1 次提交
  3. 07 8月, 2020 1 次提交
    • S
      Add evp_test fixes. · 5ccada09
      Shane Lontis 提交于
      Changed many tests so they also test fips (and removed 'availablein = default' from some tests).
      Seperated the monolithic evppkey.txt file into smaller maintainable groups.
      Changed the availablein option so it must be first - this then skips the entire test before any fetching happens.
      Changed the code so that all the OPENSSL_NO_XXXX tests are done in code via methods such as is_cipher_disabled(alg),
      before the fetch happens.
      Added missing libctx's found by adding a libctx to test_evp.
      Broke up large data files for cipher, kdf's and mac's into smaller pieces so they no longer need 'AvailableIn = default'
      Added missing algorithm aliases for cipher/digests to the providers.
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/12236)
      5ccada09
  4. 22 7月, 2020 2 次提交
  5. 16 7月, 2020 3 次提交
  6. 24 6月, 2020 1 次提交
  7. 11 6月, 2020 2 次提交
  8. 29 5月, 2020 1 次提交
    • M
      Fail if we fail to fetch the EVP_KEYMGMT · b533510f
      Matt Caswell 提交于
      If we failed to fetch an EVP_KEYMGMT then we were falling back to legacy.
      This is because some algorithms (such as MACs and KDFs used via an old
      style EVP_PKEY) have not been transferred to providers.
      
      Unfortunately this means that you cannot stop some algorithms from being
      used by not loading the provider.
      
      For example if you wanted to prevent RSA from being used, you might expect
      to just not load any providers that make it available. Unfortunately that
      doesn't work because we simply fall back to legacy if we fail to fetch
      the EVP_KEYMGMT.
      
      Instead we should fail *unless* the key type is one of those legacy key
      types that we have not transferred.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/11826)
      b533510f
  9. 27 5月, 2020 1 次提交
  10. 24 4月, 2020 1 次提交
  11. 23 4月, 2020 1 次提交
  12. 12 3月, 2020 1 次提交
  13. 21 2月, 2020 1 次提交
  14. 03 2月, 2020 1 次提交
    • M
      Fix common test framework options · 8d242823
      Matt Caswell 提交于
      PR#6975 added the ability to our test framework to have common options to
      all tests. For example providing the option "-test 5" to one of our test
      programs will just run test number 5. This can be useful when debugging
      tests.
      
      Unforuntately this does not work well for a number of tests. In particular
      those tests that call test_get_argument() without first skipping over these
      common test options will not get the expected value. Some tests did this
      correctly but a large number did not.
      
      A helper function is introduced, test_skip_common_options(), to make this
      easier for those tests which do not have their own specialised test option
      handling, but yet still need to call test_get_argument(). This function
      call is then added to all those tests that need it.
      Reviewed-by: NShane Lontis <shane.lontis@oracle.com>
      Reviewed-by: NPaul Dale <paul.dale@oracle.com>
      (Merged from https://github.com/openssl/openssl/pull/10975)
      8d242823
  15. 02 2月, 2020 1 次提交
  16. 19 1月, 2020 1 次提交
  17. 18 11月, 2019 1 次提交
    • S
      Fix Use after free when copying cipher ctx · f75abcc0
      Shane Lontis 提交于
      Fixes #10438
      issue found by clusterfuzz/ossfuzz
      
      The dest was getting a copy of the src structure which contained a pointer that should point to an offset inside itself - because of the copy it was pointing to the original structure.
      
      The setup for a ctx is mainly done by the initkey method in the PROV_CIPHER_HW structure. Because of this it makes sense that the structure should also contain a copyctx method that is use to resolve any pointers that need to be setup.
      
      A dup_ctx has been added to the cipher_enc tests in evp_test. It does a dup after setup and then frees the original ctx. This detects any floating pointers in the duplicated context that were pointing back to the freed ctx.
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/10443)
      f75abcc0
  18. 23 10月, 2019 1 次提交
  19. 17 10月, 2019 1 次提交
    • R
      EVP: add name traversal functions to all fetchable types · f651c727
      Richard Levitte 提交于
      The following new functions all do the same thing; they traverse
      the set of names assigned to implementations of each algorithm type:
      
      EVP_MD_names_do_all(), EVP_CIPHER_names_do_all(),
      EVP_MAC_names_do_all(), EVP_KEYMGMT_names_do_all(),
      EVP_KEYEXCH_names_do_all(), EVP_KDF_names_do_all(),
      EVP_SIGNATURE_names_do_all()
      
      We add a warning to the documentation of EVP_CIPHER_name() and
      EVP_MD_name(), as they aren't suitable to use with multiple-name
      implementation.
      
      We also remove EVP_MAC_name() and evp_KDF_name(), as they serve no
      useful purpose.
      Reviewed-by: NTomas Mraz <tmraz@fedoraproject.org>
      (Merged from https://github.com/openssl/openssl/pull/9979)
      f651c727
  20. 08 10月, 2019 1 次提交
  21. 03 10月, 2019 1 次提交
  22. 27 9月, 2019 1 次提交
  23. 12 9月, 2019 3 次提交
  24. 11 9月, 2019 2 次提交
  25. 06 9月, 2019 1 次提交
  26. 04 9月, 2019 1 次提交
  27. 28 8月, 2019 1 次提交
  28. 24 8月, 2019 2 次提交
  29. 19 8月, 2019 1 次提交
  30. 16 8月, 2019 1 次提交
  31. 01 8月, 2019 1 次提交
  32. 27 7月, 2019 1 次提交
    • R
      test/evp_test.c: modify to use OSSL_PROVIDER_available() · 3b5d61f4
      Richard Levitte 提交于
      This changes the stanza format used so far.  Some test stanza had the
      following line, only possible for digests:
      
          Legacy = 1
      
      These have been traded for the following:
      
          Availablein = legacy
      
      That line is globally available in all test stanza and can be used to
      tell what providers a certain algorithm may be available in.  Only one
      provider needs to match, so one might have something like this for
      some tests:
      
          Availablein = default fips
      
      This means that one of those providers must be available for the test
      stanza to be performed.
      
      If the providers mentioned for a stanza aren't available, the test is
      skipped.
      If this line isn't used in a stanza, the algorithm is assumed to be
      available unconditionally (either by fallback providers, or providers
      loaded by the config file).
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/9398)
      3b5d61f4