intrbiz / arduino-crypto

A minimal crypto library for ESP8266 Arduino
Other
140 stars 53 forks source link

'SHA256' was not declared in this scope #22

Open hiteshcmonga opened 4 years ago

hiteshcmonga commented 4 years ago

Everytime I compile the example stated for SHA256 or any encrpytion. The same error pops up. Don't really know what needs to be done. Even after defining SHA256 same problem also pertains for hasher as well

intrbiz commented 4 years ago

Hi @hiteshcmonga, this suggests that the Arduino build is not including the library correctly. If you could provide an example then we might be able to go further.

SLS8 commented 4 years ago

i have the same error. arduino1.8.12, select esp8266 nodemcu 1.0 as board, open sample aessha256hmac and click compile.

wathui99 commented 4 years ago

i have the same error. arduino1.8.12, select esp8266 nodemcu 1.0 as board, open sample aessha256hmac and click compile.

downgrading to 1.8.10 will solve it

mehtaSmitK commented 4 years ago

Goto this Location : "Arduino15\packages\esp8266\hardware\esp8266\2.7.2\cores\esp8266" remove Crypto.h and Crypto.cpp files, open sample sha256 and click compile.