diff options
author | Hans Nilsson <[email protected]> | 2018-08-22 18:59:14 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-09-07 13:50:15 +0200 |
commit | 5107b29a1bca592c0ea3840d263d0dd1f48e2ed3 (patch) | |
tree | fb856dcc792d1bf06476d6e8b9397e06da6bc65a /lib/crypto | |
parent | 0a173490c5348ffd045482fc5f29a3b49d3cf325 (diff) | |
download | otp-5107b29a1bca592c0ea3840d263d0dd1f48e2ed3.tar.gz otp-5107b29a1bca592c0ea3840d263d0dd1f48e2ed3.tar.bz2 otp-5107b29a1bca592c0ea3840d263d0dd1f48e2ed3.zip |
crypto: Bug fix - crypto:next_iv regarding aes_ige256
Diffstat (limited to 'lib/crypto')
-rw-r--r-- | lib/crypto/src/crypto.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl index 3c3e9a7f34..17351d10ea 100644 --- a/lib/crypto/src/crypto.erl +++ b/lib/crypto/src/crypto.erl @@ -300,7 +300,8 @@ next_iv(Type, Data) when is_binary(Data) -> des3_cbc -> 8; blowfish_cbc -> 8; aes_cbc -> 16; - aes_ige -> 32 + aes_ige -> 32; % For compatibility if someone has bug-adapted code + aes_ige256 -> 32 % The name used in block_encrypt et al end, {_, IVec} = split_binary(Data, size(Data) - IVecSize), IVec; |