#ifndef Sha256_config_h #define Sha256_config_h #include #if (defined(__linux) || defined(linux)) && !defined(__ARDUINO_x86__) && !defined(ARDUINO_ARCH_ESP8266) #define SHA256_LINUX #include #include #include #include #include #else #include "arduino.h" #endif #if (defined(__linux) || defined(linux)) || defined(__ARDUINO_X86__) || defined(ARDUINO_ARCH_ESP8266) #define memcpy_P memcpy #undef PROGMEM #define PROGMEM __attribute__(( section(".progmem.data") )) #define pgm_read_dword(p) (*(p)) #if defined(__ARDUINO_X86__) #include "Print.h" #endif #else #include #include #include "Print.h" #endif #include #define HASH_LENGTH 32 #define BLOCK_LENGTH 64 #endif