esp32_https_server icon indicating copy to clipboard operation
esp32_https_server copied to clipboard

hwcrypto/sha.h: No such file or directory

Open yet-another-fuzzi opened this issue 4 years ago • 2 comments

Describe the bug Compiling your library (downloaded vai library manager) you get an "hwcrypto/sha.h: No such file or directory".

Solution change "#include <hwcrypto/sha.h>" in HTTPConnection.hpp to "#include <esp32/sha.h>"

yet-another-fuzzi avatar Nov 28 '21 07:11 yet-another-fuzzi

You can just replace "hwcrypto/sha.h" with "sha/sha_parallel_engine.h", that's the header used in newer ESP-IDF versions

petoknm avatar Feb 11 '22 21:02 petoknm

Or:

#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL (4, 4, 0)
  #include <sha/sha_parallel_engine.h>  
#else
  #include <hwcrypto/sha.h>
#endif

BojanJurca avatar May 06 '22 20:05 BojanJurca