Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDo not set iv size for ECB mode ciphers #3836
Conversation
|
The ECB code doesn't use the IV information, so this is unlikely to affect application code. The information is not used in the library (it's only used for CBC to do padding and in some AEAD code) so there's no test data to fix. Code that was calling It would be good to have tests for this metadata but that's part of a large test gap so I won't request a non-regression test here. Please write a changelog entry. Other than that looks good to me. |
|
LGTM |
| @@ -0,0 +1,3 @@ | |||
| Bugfix | |||
| * Correct the default iv size for mbed_cipher_info_t structures using | |||
| MBEDTLS_MODE_ECB to 0, since ecb mode ciphers don't use ivs. | |||
ronald-cron-arm
Nov 6, 2020
Contributor
Nitpick: ECB instead of ecb and while at it probably that "IV" is better than "iv".
Nitpick: ECB instead of ecb and while at it probably that "IV" is better than "iv".
bensze01
Nov 6, 2020
Author
Contributor
Done.
Done.
ECB mode ciphers do not use IVs Signed-off-by: Bence Szépkúti <[email protected]>
|
LGTM |
|
pr-merge passed but the status reporting to GitHub failed. |
e3994d7
into
ARMmbed:development

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

This PR fixes the
mbedtls_cipher_info_tstructures inlibrary/cipher_wrap.cthat erroneously declare that block ciphers in ECB mode use IVs. (The AES ECB mode ciphers were already correct).Status
READY
Requires Backporting
Yes
Which branch?
Migrations
If there is any API change, what's the incentive and logic for it.
NO
Todos