1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Post-quantum NewHope key exchange algorithm

This commit is contained in:
Rhys Weatherley
2016-08-18 18:33:44 +10:00
parent e1bf1808c1
commit 6c4ec0cb23
8 changed files with 1571 additions and 0 deletions

View File

@@ -3,11 +3,14 @@
TOPDIR = ../..
SRCDIR = $(TOPDIR)/libraries/Crypto
SRCDIR2 = $(TOPDIR)/libraries/NewHope
#VPATH = $(SRCDIR)
vpath %.cpp $(SRCDIR)
vpath %.cpp $(SRCDIR2)
vpath %.o .
vpath %.ino $(SRCDIR)/examples
vpath %.ino $(SRCDIR2)/examples
vpath %.sketch .
LIBRARY = libCrypto.a
@@ -15,6 +18,7 @@ LIBRARY = libCrypto.a
CPPFLAGS = \
-I$(TOPDIR)/host/emulation \
-I$(TOPDIR)/libraries/Crypto \
-I$(TOPDIR)/libraries/NewHope \
-DHOST_BUILD
CXXFLAGS = -g -Wall $(CPPFLAGS)
@@ -44,6 +48,7 @@ SOURCES = \
GHASH.cpp \
Hash.cpp \
KeccakCore.cpp \
NewHope.cpp \
NoiseSource.cpp \
OFB.cpp \
OMAC.cpp \
@@ -76,6 +81,7 @@ SKETCHES = \
TestEd25519/TestEd25519.ino \
TestGCM/TestGCM.ino \
TestGHASH/TestGHASH.ino \
TestNewHope/TestNewHope.ino \
TestOFB/TestOFB.ino \
TestP521/TestP521.ino \
TestP521Math/TestP521Math.ino \