Search found 271 matches

by urbanze
Fri Sep 22, 2017 5:31 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

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...
by urbanze
Fri Sep 22, 2017 1:12 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

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...
by urbanze
Thu Sep 21, 2017 1:07 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

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 ...
by urbanze
Thu Sep 21, 2017 12:45 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

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?

Image
by urbanze
Thu Sep 21, 2017 12:24 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

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...
by urbanze
Wed Sep 20, 2017 5:20 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

Re: HWCrypto VS MbedTLS

Here my test's. I try with MBEDTLS Acell. Hard. Options ON and OFF in both libraries (HWCrypto and MBedTLS). //80MHz //HWCRYPTO Hardware Acell. (menuconfig->mbedtls) ON = 129uS / 4 Enc. //HWCRYPTO Hardware Acell. (menuconfig->mbedtls) OFF = 129uS / 4 Enc. //MBEDTLS Hardware Acell. (menuconfig->mbedt...
by urbanze
Wed Sep 20, 2017 4:15 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

Re: HWCrypto VS MbedTLS

Hardware acceleration options are inside the menuconfig mbedtls, if you disable it, and use the hwcrypto libraries, will the acceleration continue, and the mbedtls libraries are just software? Because in theory I deactivated the acceleration of mbedtls ....
by urbanze
Wed Sep 20, 2017 3:52 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

Re: HWCrypto VS MbedTLS

mbedtls is probably the easiest way, it also uses hardware acceleration(see "make menuconfig" componentconfig -> mbedtls) I think that folder is esp32 specific, and those sources allow libraries like mbedtls to use hardware acceleration. (but thats just a guess) Yes, I've seen and enabled all mbed ...
by urbanze
Wed Sep 20, 2017 3:15 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

HWCrypto VS MbedTLS

Hi guys! I see there are 2 main folders with encryption options in ESP32. By the name, the "HWCRYPTO" seems to be accelerated by hardware, but what about mbedtls? Is it hardware accelerated? What is the best? Which one should I use and why?
by urbanze
Wed Sep 20, 2017 11:39 am
Forum: ESP-IDF
Topic: sensor uint8 temperature_sensor_read()
Replies: 11
Views: 13558

Re: sensor uint8 temperature_sensor_read()

thanks for your reply, see, you use "arduino" code skeleton in your code. what is your RAW result ( return) for this line printf("ESP32 onchip Temperature = %d\n", temprature_sens_read()); best wishes rudi ;-) Yep! I use Arduino Core with IDF-Component to change some boot configurations, like task ...

Go to advanced search