Do not set IV size for ECB mode ciphers

ECB mode ciphers do not use IVs

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
Bence Szépkúti 2020-10-29 10:22:35 +01:00
parent 23055427af
commit 567bd958ff
2 changed files with 13 additions and 10 deletions

View file

@ -0,0 +1,3 @@
Bugfix
* Correct the default IV size for mbedtls_cipher_info_t structures using
MBEDTLS_MODE_ECB to 0, since ECB mode ciphers don't use IVs.