WIP: Works.

But I don't like it much yet.
This commit is contained in:
2025-02-19 00:03:36 +00:00
parent e4d67cc355
commit 62fd3a825c
4 changed files with 19 additions and 13 deletions

View File

@@ -1,7 +1,10 @@
#include <epcc/sha3.h>
#include <stdint.h>
int run();
__attribute__((section(".text"))) int cryptographic_test() {
__attribute__((used, section(".text"))) int cryptographic_test() {
// Run unit tests for cryptographic scheme
//while(1); // Debug loop
return 7;
return 7 + run();
}
int run() { return (int)epcc_sha3_serialized_size(); }