EnigmaIOT icon indicating copy to clipboard operation
EnigmaIOT copied to clipboard

Issue building for an esp32 with version 0.9.7

Open userwithaname123 opened this issue 3 years ago • 4 comments

.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

userwithaname123 avatar Jan 14 '22 20:01 userwithaname123

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

#include <string.h>

Ashioto avatar Feb 13 '22 08:02 Ashioto

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 avatar Apr 20 '22 13:04 xelfe

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));

xelfe avatar Apr 20 '22 14:04 xelfe

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

Ashioto avatar Apr 20 '22 14:04 Ashioto