This commit is contained in:
Kris Kwiatkowski 2025-02-19 18:12:20 +00:00
parent 81dbb669eb
commit efa02dca38
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
all: 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 -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-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-ar rcs runner runner.elf
arm-none-eabi-objcopy -O binary libpqscheme_test.elf libpqscheme_test.bin arm-none-eabi-objcopy -O binary libpqscheme_test.elf libpqscheme_test.bin

View File

@ -1,4 +1,3 @@
#include <epcc/sha3.h>
#include <stdint.h> #include <stdint.h>
int run(); int run();
@ -7,4 +6,4 @@ __attribute__((used, section(".text"))) int cryptographic_test() {
return 7 + run(); return 7 + run();
} }
int run() { return (int)epcc_sha3_serialized_size(); } int run() { return 1; }