Skip to content
Commit af09eba6 authored by Андрей Мозжухин's avatar Андрей Мозжухин Committed by Tom Rini
Browse files

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: default avatarAndrey Mozzhuhin <amozzhuhin@yandex.ru>
parent 1414e09b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment