Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 5333aa5

Browse files
committed
We don't support aes_ctr before OTP-22
The cipher was not available via the EVP interface before Erlang/OTP-22.
1 parent 2c2f0be commit 5333aa5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/rabbit_pbe.erl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ supported_ciphers() ->
4747
NotSupportedByUs = [aes_ccm, aes_128_ccm, aes_192_ccm, aes_256_ccm,
4848
aes_gcm, aes_128_gcm, aes_192_gcm, aes_256_gcm,
4949
aes_ecb, aes_128_ecb, aes_192_ecb, aes_256_ecb,
50+
aes_ctr,
5051
chacha20, chacha20_poly1305,
5152
blowfish_ecb, des_ecb, rc4],
5253
SupportedByCrypto = proplists:get_value(ciphers, crypto:supports()),
@@ -188,10 +189,6 @@ iv_length(aes_256_cfb8) -> 16;
188189
iv_length(aes_128_cfb128) -> 16;
189190
iv_length(aes_192_cfb128) -> 16;
190191
iv_length(aes_256_cfb128) -> 16;
191-
iv_length(aes_ctr) -> 16;
192-
iv_length(aes_128_ctr) -> 16;
193-
iv_length(aes_192_ctr) -> 16;
194-
iv_length(aes_256_ctr) -> 16;
195192
iv_length(aes_ige256) -> 32.
196193

197194
key_length(des_cbc) -> 8;
@@ -221,10 +218,6 @@ key_length(aes_256_cfb8) -> 32;
221218
key_length(aes_128_cfb128) -> 16;
222219
key_length(aes_192_cfb128) -> 24;
223220
key_length(aes_256_cfb128) -> 32;
224-
key_length(aes_ctr) -> 32;
225-
key_length(aes_128_ctr) -> 16;
226-
key_length(aes_192_ctr) -> 24;
227-
key_length(aes_256_ctr) -> 32;
228221
key_length(aes_ige256) -> 16.
229222

230223
block_size(aes_cbc) -> 16;

0 commit comments

Comments
 (0)