aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-03-19 11:50:59 +0100
committerLoïc Hoguin <[email protected]>2019-03-19 12:47:29 +0100
commit520ea3275e932810b3beda1f8c524dc5db9941a9 (patch)
tree4b6be9c9b31484770068f067aeb72b5752c61274 /lib/crypto/src
parent47b496da10cfedeea8a0341ce13c76de3c132a57 (diff)
downloadotp-520ea3275e932810b3beda1f8c524dc5db9941a9.tar.gz
otp-520ea3275e932810b3beda1f8c524dc5db9941a9.tar.bz2
otp-520ea3275e932810b3beda1f8c524dc5db9941a9.zip
Make crypto:cipher_info work for all ciphers and aliases
Diffstat (limited to 'lib/crypto/src')
-rw-r--r--lib/crypto/src/crypto.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index 97a4a7a3f0..4df7e6360c 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -540,8 +540,10 @@ poly1305(Key, Data) ->
-spec cipher_info(Type) -> map() when Type :: block_cipher_with_iv()
| aead_cipher()
| block_cipher_without_iv().
+cipher_info(aes_ige256) ->
+ #{block_size => 16,iv_length => 32,key_length => 16,mode => ige_mode,type => undefined};
cipher_info(Type) ->
- cipher_info_nif(Type).
+ cipher_info_nif(alias(Type)).
%%%---- Block ciphers