gmag11 / EnigmaIOT

Secure sensor and gateway platform based on ESP8266 and ESP32
https://gmag11.github.io/EnigmaIOT
MIT License
240 stars 46 forks source link

Issue building for an esp32 with version 0.9.7 #41

Open userwithaname123 opened 2 years ago

userwithaname123 commented 2 years ago
.pio/libdeps/esp32/Crypto/src/SHA384.cpp: In member function 'virtual void SHA384::reset()':
.pio/libdeps/esp32/Crypto/src/SHA384.cpp:57:51: error: 'memcpy' was not declared in this scope
     memcpy_P(state.h, hashStart, sizeof(hashStart));
                                                   ^
*** [.pio/build/esp32/libe26/Crypto/SHA384.cpp.o] Error 1

please fix

Ashioto commented 2 years ago

This one is easy. Adding one include sentence near the header will solve it.

#include <string.h>

xelfe commented 2 years ago

This one is easy. Adding one include sentence near the header will solve it.

#include <string.h>

Uh ! The problem is from CryptoArduino librairie. Do you mean that we must change the librairie code ?!

xelfe commented 2 years ago

I confirm. Each examples cannot build, Got .pio/libdeps/esp32/Crypto/src/SHA384.cpp: In member function 'virtual void SHA384::reset()': .pio/libdeps/esp32/Crypto/src/SHA384.cpp:57:51: error: 'memcpy' was not declared in this scope memcpy_P(state.h, hashStart, sizeof(hashStart));

Ashioto commented 2 years ago

Did you try to add the include in this file? Yes, you need to modify the copy of the library in your local file system. If you do not hit the clean command in the platformio panel, the changes will not be overwritten.

.pio/libdeps/esp32/Crypto/src/SHA384.cpp