Oh, I get it now (and somehow makes sense)...
Thank you for your clarification, really helps!
A.
Search found 6 matches
- Tue Mar 09, 2021 4:53 pm
- Forum: ESP-IDF
- Topic: Possible memory corruption / leak in mbedtls AES implementation (iv)
- Replies: 6
- Views: 6343
- Tue Mar 09, 2021 4:16 am
- Forum: ESP-IDF
- Topic: Possible memory corruption / leak in mbedtls AES implementation (iv)
- Replies: 6
- Views: 6343
Re: Possible memory corruption / leak in mbedtls AES implementation (iv)
I'm afraid you don't get my point. To encrypt or decrypt a string using AES (e.g. CBC), you need the following: -An initialization vector (IV) , which is a random string you generate before encryption (which is sent along with the encrypted payload) -An encryption key -The payload (text) to be encry...
- Fri Mar 05, 2021 5:44 pm
- Forum: ESP-IDF
- Topic: Possible memory corruption / leak in mbedtls AES implementation (iv)
- Replies: 6
- Views: 6343
Re: Possible memory corruption / leak in mbedtls AES implementation (iv)
My point was that usually the IV is sent along with the encrypted payload, so it will be in an output string at some point. As its value is changed by the function, it means that the output will no longer be valid as the IV won't match anymore the encrypted string. That's why the function shouldn't ...
- Thu Mar 04, 2021 7:54 pm
- Forum: ESP-IDF
- Topic: Possible memory corruption / leak in mbedtls AES implementation (iv)
- Replies: 6
- Views: 6343
Possible memory corruption / leak in mbedtls AES implementation (iv)
Hi, I found a bug in the implementation of AES under mbedtls (block implementation). When encrypting something using CBC by calling mbedtls_aes_crypt_cbc , you are actually calling esp_aes_crypt_cbc . Notice that the function expects the initialization vector to be given as unsigned char iv[16] (so ...
- Sat Jan 16, 2021 7:31 pm
- Forum: General Discussion
- Topic: Get BLE UUID for iOS pairing
- Replies: 12
- Views: 22814
Re: Get BLE UUID for iOS pairing
Thank you both for your answers. So, as per my understanding, that UUID is generated by iOS based on some hardware property of the BLE device (e.g. MAC address). Regarding this: Of course you can write your own code, which can generate similarly guid and create QR code with it, then you can add such...
- Sat Jan 16, 2021 9:18 am
- Forum: General Discussion
- Topic: Get BLE UUID for iOS pairing
- Replies: 12
- Views: 22814
Re: Get BLE UUID for iOS pairing
Sorry for bringing the topic back on, but the original poster has a point: While scanning for an ESP32 Advertising device using nRF Scanner (or BLE Scanner) - on Android Phones, you indeed get the MAC address of the device. However, when you scan for it in iOS using the same apps, you don't get the ...