rweather / arduinolibs

Arduino Cryptography Library
444 stars 212 forks source link

Error compiling for new Arduino core for the ESP32 #66

Closed TiagoPereiraRibeiro closed 2 years ago

TiagoPereiraRibeiro commented 3 years ago

"C:\Users\username\Documents\Arduino\libraries\Crypto\src\AES.h:200:10: fatal error: hwcrypto/aes.h: No such file or directory"

Board selected on Arduino IDE: ESP32 Dev Module

Comment:

garudaonekh commented 3 years ago

Same issue, any suggestion?

PiotrBzdrega commented 3 years ago

Guy below mentioned that **hwcrypto/*** has been moved to **esp32/***. https://githubmemory.com/repo/kind3r/esp32-ble-gateway/issues/3

So i the file \Documents\Arduino\libraries\Crypto\src\AES.h:200: i changed #include "hwcrypto/aes.h" -> #include "esp32/aes.h" then i was able to compile prj but.... with warnings

warning "esp32/aes.h is deprecated, please use aes/esp_aes.h instead"

After change for #include "aes/esp_aes.h" problem disappeared (hope on your side as well).

Idk if this commit is related to this somehow : https://gitea.edwinclement08.com/espressif/esp-idf/commit/709a320f337572f0ad6fb9c6b2d162bd3005cf93

spleenware commented 2 years ago

I'm also encountering this. Any way to upvote this issue?

rweather commented 2 years ago

I have attempted to fix this in the latest version by defining the ESP32 AES library functions myself rather than include a system header that keeps moving around in different SDK versions. Hopefully this helps resolve the problem permanently. If not, let me know.