mirror of
https://github.com/itzmeanjan/ml-kem.git
synced 2026-01-09 07:37:55 -05:00
bash script and make recipe for ease of running KATs
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
This commit is contained in:
5
Makefile
5
Makefile
@@ -4,7 +4,7 @@ OPTFLAGS = -O3 -march=native
|
||||
IFLAGS = -I ./include
|
||||
DEP_IFLAGS = -I ./sha3/include
|
||||
|
||||
all: testing
|
||||
all: testing test_kat
|
||||
|
||||
wrapper/libkyber_kem.so: wrapper/kyber_kem.cpp include/*.hpp sha3/include/*.hpp
|
||||
$(CXX) $(CXXFLAGS) $(OPTFLAGS) $(IFLAGS) $(DEP_IFLAGS) -fPIC --shared $< -o $@
|
||||
@@ -17,6 +17,9 @@ test/a.out: test/main.cpp include/*.hpp sha3/include/*.hpp
|
||||
testing: test/a.out
|
||||
./$<
|
||||
|
||||
test_kat:
|
||||
bash test_kat.sh
|
||||
|
||||
clean:
|
||||
find . -name '*.out' -o -name '*.o' -o -name '*.so' -o -name '*.gch' | xargs rm -rf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user