From efa02dca384661b3954fa12150c0b179c98258fc Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Wed, 19 Feb 2025 18:12:20 +0000 Subject: [PATCH] WIP --- Makefile | 4 ++-- libpqscheme_test.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bc9fc67..741c9c5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ all: arm-none-eabi-gcc -ggdb -mcpu=Cortex-M4 -mthumb -r -nostartfiles -o libpqscheme_test.o libpqscheme_test.c -Iruntime_mps2/out/an386/pack/include -I/home/kris/repos/pqshield/epcc/out/armv7e-m/inc - arm-none-eabi-gcc -ggdb -mcpu=Cortex-M4 -mthumb -Tlibpqscheme.ld -nostartfiles -o libpqscheme_test.elf libpqscheme_test.o -L/home/kris/repos/pqshield/epcc/out/armv7e-m/lib -lmlkem -lsha3 -lcommon + arm-none-eabi-gcc -ggdb -mcpu=Cortex-M4 -mthumb -Tlibpqscheme.ld -nostartfiles -o libpqscheme_test.elf libpqscheme_test.o -L/home/kris/repos/pqshield/epcc/out/armv7e-m/lib arm-none-eabi-gcc -ggdb -mcpu=Cortex-M4 -mthumb -Truntime_mps2/out/an386/pack/lib/mps2.ld -nostartfiles -o runner.elf runner.c -Lruntime_mps2/out/an386/pack/lib -lmps2-an386_runtime -Iruntime_mps2/out/an386/pack/include arm-none-eabi-ar rcs runner runner.elf arm-none-eabi-objcopy -O binary libpqscheme_test.elf libpqscheme_test.bin @@ -22,4 +22,4 @@ clean: rm -rf runner proper: clean - cd runtime_mps2 && cmake --build --preset an386 --target clean \ No newline at end of file + cd runtime_mps2 && cmake --build --preset an386 --target clean diff --git a/libpqscheme_test.c b/libpqscheme_test.c index 06cdccd..77234aa 100644 --- a/libpqscheme_test.c +++ b/libpqscheme_test.c @@ -1,4 +1,3 @@ -#include #include int run(); @@ -7,4 +6,4 @@ __attribute__((used, section(".text"))) int cryptographic_test() { return 7 + run(); } -int run() { return (int)epcc_sha3_serialized_size(); } +int run() { return 1; }