Page 1 of 1

ESP32 support HWcrypto, why there are another crypto in component ?

Posted: Fri Dec 16, 2016 6:29 am
by wziy520
Does the result after encrypt different?
Why need 2 crypto?

Re: ESP32 support HWcrypto, why there are another crypto in component ?

Posted: Fri Dec 16, 2016 6:47 am
by ESP_igrr
I suppose you mean components/wpa_supplicant/src/crypto?
This is part of the source code of wpa_supplicant library, used inside the wifi stack. It is indeed possible to re-write parts of this library to make use of HW crypto APIs, this is currently in our backlog.

Re: ESP32 support HWcrypto, why there are another crypto in component ?

Posted: Fri Dec 16, 2016 6:59 am
by wziy520
sorry for not clear express,

I mean , there are 2 sha.c (hwcrypto) sha1.c sha256.c(mbedTls), it implement the same function, why need the 2 part.

there a mbedTls example using, I have the question because i want to know does HWcrypto work well or not

Re: ESP32 support HWcrypto, why there are another crypto in component ?

Posted: Fri Dec 16, 2016 7:06 am
by wziy520
got it, the sha belong mbedTls are library code of Mbed, thanks