mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
Port the crypto library to ESP32
This commit is contained in:
@@ -27,7 +27,7 @@ This example runs tests on the BLAKE2b implementation to verify correct behaviou
|
||||
#include <Crypto.h>
|
||||
#include <BLAKE2b.h>
|
||||
#include <string.h>
|
||||
#if defined(ESP8266)
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
#include <pgmspace.h>
|
||||
#else
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
@@ -27,7 +27,7 @@ This example runs tests on the BLAKE2s implementation to verify correct behaviou
|
||||
#include <Crypto.h>
|
||||
#include <BLAKE2s.h>
|
||||
#include <string.h>
|
||||
#if defined(ESP8266)
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
#include <pgmspace.h>
|
||||
#else
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
@@ -27,7 +27,7 @@ This example runs tests on the ChaCha implementation to verify correct behaviour
|
||||
#include <Crypto.h>
|
||||
#include <ChaCha.h>
|
||||
#include <string.h>
|
||||
#if defined(ESP8266)
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
#include <pgmspace.h>
|
||||
#else
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
@@ -28,7 +28,7 @@ correct behaviour.
|
||||
#include <Crypto.h>
|
||||
#include <ChaChaPoly.h>
|
||||
#include <string.h>
|
||||
#if defined(ESP8266)
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
#include <pgmspace.h>
|
||||
#else
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
@@ -30,7 +30,7 @@ This example runs tests on the EAX implementation to verify correct behaviour.
|
||||
#include <Speck.h>
|
||||
#include <SpeckTiny.h>
|
||||
#include <string.h>
|
||||
#if defined(ESP8266)
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
#include <pgmspace.h>
|
||||
#else
|
||||
#include <avr/pgmspace.h>
|
||||
@@ -540,7 +540,7 @@ void setup()
|
||||
Serial.println();
|
||||
delete eax;
|
||||
eax256 = new EAX<AES256>();
|
||||
perfCipher(eax, &testVectorEAX1, "AES-256");
|
||||
perfCipher(eax256, &testVectorEAX1, "AES-256");
|
||||
Serial.println();
|
||||
delete eax256;
|
||||
eaxSpeck = new EAX<Speck>();
|
||||
|
||||
@@ -30,7 +30,7 @@ This example runs tests on the GCM implementation to verify correct behaviour.
|
||||
#include <SpeckTiny.h>
|
||||
#include <GCM.h>
|
||||
#include <string.h>
|
||||
#if defined(ESP8266)
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
#include <pgmspace.h>
|
||||
#else
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
@@ -34,7 +34,7 @@ AVR platforms with 32K or less of flash memory.
|
||||
#include <RNG.h>
|
||||
#include <RNG.h>
|
||||
#include <string.h>
|
||||
#if defined(ESP8266)
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
#include <pgmspace.h>
|
||||
#else
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
@@ -31,7 +31,7 @@ This example runs tests on the XTS implementation to verify correct behaviour.
|
||||
#include <SpeckTiny.h>
|
||||
#include <XTS.h>
|
||||
#include <string.h>
|
||||
#if defined(ESP8266)
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
#include <pgmspace.h>
|
||||
#else
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
Reference in New Issue
Block a user