Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECB MODE doesn't need IV #1091

Closed
RunzeJustin opened this issue Sep 14, 2017 · 2 comments
Closed

ECB MODE doesn't need IV #1091

RunzeJustin opened this issue Sep 14, 2017 · 2 comments
Labels

Comments

@RunzeJustin
Copy link

Bug

Here are the comments in the header file https://github.com/ARMmbed/mbedtls/blob/72ea31b026e1fc61b01662474aa5125817b968bc/include/mbedtls/cipher.h#L624-L638

But the all-in-one function 'mbedtls_cipher_crypt' still check for IV data.
https://github.com/ARMmbed/mbedtls/blob/72ea31b026e1fc61b01662474aa5125817b968bc/library/cipher.c#L812-L835

https://github.com/ARMmbed/mbedtls/blob/72ea31b026e1fc61b01662474aa5125817b968bc/library/cipher.c#L214-L221

@RonEld
Copy link
Contributor

RonEld commented Sep 14, 2017

Hi @EzDevelop
Thank you for reporting this issue!
I believe you are correct in your analysis

@ciarmcom
Copy link

ARM Internal Ref: IOTSSL-1753

RonEld pushed a commit to RonEld/mbedtls that referenced this issue Sep 25, 2017
1. Add tests for 'mbedtls_cipher_crypt()' API
2. Resolves Mbed-TLS#1091, by ignoring IV when the cipher mode is MBEDTLS_MODE_ECB
RonEld pushed a commit to RonEld/mbedtls that referenced this issue Jun 21, 2018
1. Add tests for 'mbedtls_cipher_crypt()' API
2. Resolves Mbed-TLS#1091, by ignoring IV when the cipher mode is MBEDTLS_MODE_ECB
RonEld pushed a commit to RonEld/mbedtls that referenced this issue Jun 21, 2018
1. Add tests for 'mbedtls_cipher_crypt()' API
2. Resolves Mbed-TLS#1091, by ignoring IV when the cipher mode is MBEDTLS_MODE_ECB
simonbutcher pushed a commit to RonEld/mbedtls that referenced this issue Jul 23, 2018
1. Add tests for 'mbedtls_cipher_crypt()' API
2. Resolves Mbed-TLS#1091, by ignoring IV when the cipher mode is MBEDTLS_MODE_ECB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants