commit | 9aaa236c9c5ba20a8c46be78f064cdf6e64e846a | [log] [tgz] |
---|---|---|
author | Андрей Мозжухин <amozzhuhin@yandex.ru> | Wed Jan 03 15:43:56 2018 +0300 |
committer | Tom Rini <trini@konsulko.com> | Mon Jan 29 12:50:13 2018 -0500 |
tree | 69ae8dbb79cbea7643ff143d57de39a1f7046d95 | |
parent | 61645e78354c2d35ad6b1f64658e718f0f068ecb [diff] |
aes: Allow non-zero initialization vector AES encryption in CBC mode, in most cases, must be used with random initialization vector. Using the same key and initialization vector several times is weak and must be avoided. Added iv parameter to the aes_cbc_encrypt_blocks and aes_cbc_decrypt_blocks functions for passing initialization vector. Command 'aes' now also require the initialization vector parameter. Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>