intrbiz / arduino-crypto

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

'RNG' has not been declared #21

Closed LinkTree3 closed 4 years ago

LinkTree3 commented 4 years ago

I am trying to run the AES example given in the readme but I keep getting this error telling me 'RNG' has not been declared

I am not sure what I am doing wrong

if I comment out the RNG::fill(iv, BLOCK_SIZE); line I get 'AES' was not declared in this scope

LinkTree3 commented 4 years ago

I found the issue! there was another Crypto library installed already with the arduino ide and it was located in C:\Users\<user>\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.0\cores\esp8266

I had to remove the Crypto.h and Crypto.cpp in order to get the example to compile.