I have installed this library in Arduino IDE. When I tried to compile the “simple” example, I got the following error:
Arduino: 1.8.11 (Windows 10), Board: “WeMos D1 R1, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, WIFI, Only Sketch, 921600”
C:\Users\af\Documents\Arduino\libraries\AESLib\src\AESLib.cpp: In member function ‘uint16_t AESLib::decrypt64(char*, uint16_t, char*, unsigned char*, int, unsigned char*)’:
C:\Users\af\Documents\Arduino\libraries\AESLib\src\AESLib.cpp:222:50: error: ‘memset_s’ was not declared in this scope
int er = memset_s( out, sizeof(out), 0, b64len );
exit status 1
Error compiling for board WeMos D1 R1.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
How can I fix this error? Thanks.