aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/test
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-03-22 10:03:49 +0100
committerGitHub <[email protected]>2019-03-22 10:03:49 +0100
commit1b6895221c98b6be55088790c5fb3057f1c9b304 (patch)
tree08c38d08f223a3fd737c835e242995475159c183 /lib/crypto/test
parentd096ca2c0cebec816fa2e0386b7e5f0d8cd62a88 (diff)
parente7c0b56a28a85959fbde9de88b982cae94bf3474 (diff)
downloadotp-1b6895221c98b6be55088790c5fb3057f1c9b304.tar.gz
otp-1b6895221c98b6be55088790c5fb3057f1c9b304.tar.bz2
otp-1b6895221c98b6be55088790c5fb3057f1c9b304.zip
Merge pull request #2186 from essen/improve-cipher-info
Make crypto:cipher_info work for all ciphers and aliases OTP-15655
Diffstat (limited to 'lib/crypto/test')
-rw-r--r--lib/crypto/test/crypto_SUITE.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl
index 5aa19a6ae0..ce5097de47 100644
--- a/lib/crypto/test/crypto_SUITE.erl
+++ b/lib/crypto/test/crypto_SUITE.erl
@@ -847,7 +847,8 @@ cipher_info(Config) when is_list(Config) ->
#{type := _,key_length := _,iv_length := _,
block_size := _,mode := _} = crypto:cipher_info(aes_128_cbc),
{'EXIT',_} = (catch crypto:cipher_info(not_a_cipher)),
- ok.
+ lists:foreach(fun(C) -> crypto:cipher_info(C) end,
+ proplists:get_value(ciphers, crypto:supports())).
%%--------------------------------------------------------------------
hash_info() ->
@@ -855,7 +856,8 @@ hash_info() ->
hash_info(Config) when is_list(Config) ->
#{type := _,size := _,block_size := _} = crypto:hash_info(sha256),
{'EXIT',_} = (catch crypto:hash_info(not_a_hash)),
- ok.
+ lists:foreach(fun(H) -> crypto:hash_info(H) end,
+ proplists:get_value(hashs, crypto:supports())).
%%--------------------------------------------------------------------
%% Internal functions ------------------------------------------------