diff options
author | Hans Nilsson <hans@erlang.org> | 2020-05-07 11:23:55 +0200 |
---|---|---|
committer | Hans Nilsson <hans@erlang.org> | 2020-05-19 10:40:36 +0200 |
commit | 74e564de620177ff92b7f125e54b8010a10809e0 (patch) | |
tree | 6017b7f92837cb22e72d9f8e8b48d225c9b8b773 /lib/crypto/test | |
parent | 3e74a0480084801d1b5a7aeba16febda25629bcf (diff) | |
download | erlang-74e564de620177ff92b7f125e54b8010a10809e0.tar.gz |
crypto/test: Remove bad option in rsa enc/dec test
The padding rsa_x931_padding is not valid for enc/dec. This was not reported as an error on openssl < 3.0
Diffstat (limited to 'lib/crypto/test')
-rw-r--r-- | lib/crypto/test/crypto_SUITE.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl index ca72601bef..5adf4b6b6e 100644 --- a/lib/crypto/test/crypto_SUITE.erl +++ b/lib/crypto/test/crypto_SUITE.erl @@ -2239,12 +2239,13 @@ gen_rsa_sign_verify_tests(Hashs, Msg, Public, Private, Opts) -> gen_rsa_pub_priv_tests(Public, Private, Msg, OptsToTry) -> - SupOpts = proplists:get_value(rsa_opts, crypto:supports(), []), + SupOpts = proplists:get_value(rsa_opts, crypto:supports(), []) -- + [rsa_x931_padding], lists:foldr(fun(Opt, Acc) -> case rsa_opt_is_supported(Opt, SupOpts) of true -> [{rsa, Public, Private, Msg, Opt} | Acc]; - false -> + false -> Acc end end, [], OptsToTry). |