1
0
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:
Rhys Weatherley
2018-04-02 15:02:42 +10:00
parent b1ac67efb6
commit e2420adfc5
10 changed files with 76 additions and 21 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>();

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>