about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-04-19 16:09:31 +0200
committerLeah Neukirchen <leah@vuxu.org>2020-04-19 16:09:31 +0200
commitbbe81e6c871e9556ce224a9039c7d8eb507276b2 (patch)
tree828058ec18346010474e59c2a0d59d8e05b4ae8b /Makefile
parent91a136ea9bfbffe691540becd67a4efba5cec16d (diff)
downloadrdd-master.tar.gz
rdd-master.tar.xz
rdd-master.zip
use chacha8, switch to chacha-opt HEAD master
This is actually even faster (and comparable in speed with the reference
implementation), and also has received substantial cryptanalysis.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ea91cfa..f172b30 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,23 @@
 ALL=rdd
 
 CFLAGS=-g -O3 -Wall -Wno-switch -Wextra -Wwrite-strings
+CPPFLAGS=-I./chacha-opt/app/include
 
 DESTDIR=
 PREFIX=/usr/local
 BINDIR=$(PREFIX)/bin
 MANDIR=$(PREFIX)/share/man
 
-all: $(ALL)
+all: $(ALL) chacha-opt/bin/chacha.lib
 
 clean: FRC
 	rm -f $(ALL) *.o
+	make -C chacha-opt clean
 
-rdd: sosemanuk.o rdd.o
-rdd.c: sosemanuk.h
+rdd: rdd.o chacha-opt/bin/chacha.lib
+
+chacha-opt/bin/chacha.lib:
+	cd chacha-opt && ./configure && make
 
 install: FRC all
 	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(ZSHCOMPDIR)