Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue building for an esp32 with version 0.9.7 #41

Open
userwithaname123 opened this issue Jan 14, 2022 · 4 comments
Open

Issue building for an esp32 with version 0.9.7 #41

userwithaname123 opened this issue Jan 14, 2022 · 4 comments

Comments

@userwithaname123
Copy link

.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
Copy link

Ashioto commented Feb 13, 2022

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

#include <string.h>

@xelfe
Copy link

xelfe commented Apr 20, 2022

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
Copy link

xelfe commented Apr 20, 2022

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
Copy link

Ashioto commented Apr 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants