diff options
| author | Arnaud Cogoluègnes <acogoluegnes@gmail.com> | 2016-10-10 12:25:47 +0200 |
|---|---|---|
| committer | Arnaud Cogoluègnes <acogoluegnes@gmail.com> | 2016-10-10 12:25:47 +0200 |
| commit | 7e1ea9d5c1a137b27d0f3ed018b32f33060dabb8 (patch) | |
| tree | 8117795f1c6aa19819cf56b32d603e79dee5835c /test | |
| parent | d827dbad50c4e7c4c4b93545ac523137412b7f14 (diff) | |
| download | rabbitmq-server-git-7e1ea9d5c1a137b27d0f3ed018b32f33060dabb8.tar.gz | |
Add encode command to rabbitmqctl
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit_SUITE.erl | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/test/unit_SUITE.erl b/test/unit_SUITE.erl index 56d02d6da7..905a92a10b 100644 --- a/test/unit_SUITE.erl +++ b/test/unit_SUITE.erl @@ -262,10 +262,8 @@ prepend_check(HeaderKey, HeaderTable, Headers) -> encrypt_decrypt(_Config) -> %% Take all available block ciphers. - Hashes = proplists:get_value(hashs, crypto:supports()) - -- [md4, ripemd160], - Ciphers = proplists:get_value(ciphers, crypto:supports()) - -- [aes_ctr, aes_ecb, des_ecb, blowfish_ecb, rc4, aes_gcm], + Hashes = rabbit_pbe:supported_hashes(), + Ciphers = rabbit_pbe:supported_ciphers(), %% For each cipher, try to encrypt and decrypt data sizes from 0 to 64 bytes %% with a random passphrase. _ = [begin @@ -282,10 +280,8 @@ encrypt_decrypt(_Config) -> encrypt_decrypt_term(_Config) -> %% Take all available block ciphers. - Hashes = proplists:get_value(hashs, crypto:supports()) - -- [md4, ripemd160], - Ciphers = proplists:get_value(ciphers, crypto:supports()) - -- [aes_ctr, aes_ecb, des_ecb, blowfish_ecb, rc4, aes_gcm], + Hashes = rabbit_pbe:supported_hashes(), + Ciphers = rabbit_pbe:supported_ciphers(), %% Different Erlang terms to try encrypting. DataSet = [ 10000, @@ -310,10 +306,8 @@ encrypt_decrypt_term(_Config) -> decrypt_config(_Config) -> %% Take all available block ciphers. - Hashes = proplists:get_value(hashs, crypto:supports()) - -- [md4, ripemd160], - Ciphers = proplists:get_value(ciphers, crypto:supports()) - -- [aes_ctr, aes_ecb, des_ecb, blowfish_ecb, rc4, aes_gcm], + Hashes = rabbit_pbe:supported_hashes(), + Ciphers = rabbit_pbe:supported_ciphers(), Iterations = [1, 10, 100, 1000], %% Loop through all hashes, ciphers and iterations. _ = [begin |
