mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
Make the Crypto examples work for ESP8266
This commit is contained in:
@@ -28,10 +28,14 @@ This example runs tests on the NewHope class to verify correct behaviour.
|
||||
#include <NewHope.h>
|
||||
#include <RNG.h>
|
||||
#include <string.h>
|
||||
#if defined(ESP8266)
|
||||
#include <pgmspace.h>
|
||||
#else
|
||||
#include <avr/pgmspace.h>
|
||||
#if !defined(__AVR__)
|
||||
#define memcmp_P(a,b,c) memcmp((a), (b), (c))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Test vectors that were generated by the reference C implementation.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user