Search found 296 matches
- Wed Oct 04, 2017 1:43 am
- Forum: General Discussion
- Topic: ULP global variables
- Replies: 49
- Views: 55533
Re: ULP global variables
Hi urbanze, I tried to change any global variable with ULP, but doesnt work. What I do wrong? I can't read anything on these screen shoots :shock: I will be guessing then :D Maybe you are missing the "ulp_" prefix? Ref. https://esp-idf.readthedocs.io/en/latest/api-guides/ulp.html#accessing-ulp-prog...
- Tue Oct 03, 2017 7:38 pm
- Forum: General Discussion
- Topic: ULP global variables
- Replies: 49
- Views: 55533
ULP global variables
Hi guys! I tried to change any global variable with ULP, but doesnt work. What I do wrong?
(The code simply read the variable before, and after the ULP to check if the variable has changed.)
C code
Assembly code
(The code simply read the variable before, and after the ULP to check if the variable has changed.)
C code
Assembly code
- Wed Sep 27, 2017 8:33 pm
- Forum: ESP-IDF
- Topic: ArcFour Decrypt?
- Replies: 2
- Views: 4190
Re: ArcFour Decrypt?
I tested the simple one, got the encrypted phrase and threw it in the input, to see if it returned the original message in the output. He encrypted again D:
- Wed Sep 27, 2017 3:42 pm
- Forum: ESP-IDF
- Topic: ArcFour Decrypt?
- Replies: 2
- Views: 4190
ArcFour Decrypt?
I working with RC4 (Arc4) from MbedTLS. I had sucessful to encrypt, but not to decrypt. I doesnt find function to decrypt. Where is it? How can I decrypt?
Image: code used to encrypt, and showing functions from mbed. (Where is decrypt function?)
Image: code used to encrypt, and showing functions from mbed. (Where is decrypt function?)
- Mon Sep 25, 2017 1:18 pm
- Forum: General Discussion
- Topic: HWCrypto VS MbedTLS
- Replies: 19
- Views: 33050
Re: HWCrypto VS MbedTLS
That is a bit odd. If you use the CCOUNT register instead of micros() (and avoid any floating point division), do you get the same thing? I did the RSR () tests and the results were the same with 250 encryptions. Why? The files indicate the same operations, there is something wrong... :?: MbedTLS, ...
- Fri Sep 22, 2017 5:31 pm
- Forum: General Discussion
- Topic: HWCrypto VS MbedTLS
- Replies: 19
- Views: 33050
Re: HWCrypto VS MbedTLS
Could it be that there is some over head associated with setting up the hw crypto unit that causes these poor numbers. What happens if you use bigger input and output blocks? For example En/De-crypt 256 bytes instead of 16. You say, divide 256B into 16 16B blocks and encrypt one by one? Input and O...
- Fri Sep 22, 2017 1:12 pm
- Forum: General Discussion
- Topic: HWCrypto VS MbedTLS
- Replies: 19
- Views: 33050
Re: HWCrypto VS MbedTLS
Well... Sucess!! Before, I put only "mbedtls\include\mbedtls\aes.h". Now, I tried put more one "mbedtls\library\aes.c" and WORKED! I'm glad you got this working. Can you explain exactly what you needed to change? See both libraries: https://i.imgur.com/d3liT0L.png However, with HWCrypto only, takes...
- Thu Sep 21, 2017 1:07 pm
- Forum: General Discussion
- Topic: HWCrypto VS MbedTLS
- Replies: 19
- Views: 33050
Re: HWCrypto VS MbedTLS
Well... Sucess!! Before, I put only "mbedtls\include\mbedtls\aes.h". Now, I tried put more one "mbedtls\library\aes.c" and WORKED! See both libraries: https://i.imgur.com/d3liT0L.png However, with HWCrypto only, takes ~129uS. MbedTLS with Acell ON takes ~150uS.... List bellow show my tests. //ESP32 ...
- Thu Sep 21, 2017 12:45 pm
- Forum: General Discussion
- Topic: HWCrypto VS MbedTLS
- Replies: 19
- Views: 33050
Re: HWCrypto VS MbedTLS
I deleted "build" folder from Arduico core__IDF Component and rebuild again with MbedTLS Acell ON. Still with error, see:
Build folder and files inside:
https://i.imgur.com/K56Euvp.png
https://i.imgur.com/mrPn8d2.png
Here, error in compile. What can I try now?
Build folder and files inside:
https://i.imgur.com/K56Euvp.png
https://i.imgur.com/mrPn8d2.png
Here, error in compile. What can I try now?
- Thu Sep 21, 2017 12:24 pm
- Forum: General Discussion
- Topic: HWCrypto VS MbedTLS
- Replies: 19
- Views: 33050
Re: HWCrypto VS MbedTLS
The implementation in esp32/hwcrypto is a "lower level" implementation of AES & SHA primitives. If you use mbedTLS and enable hardware acceleration, it will call these functions as the AES & SHA implementations. For RSA/ECDSA big number hardware acceleration, it was too complex to create a "lower l...