This commit is contained in:
Imbus 2025-08-24 15:19:37 +02:00
commit 94c4bbd6cf
7 changed files with 3403 additions and 0 deletions

23
Makefile Normal file
View file

@ -0,0 +1,23 @@
CC = gcc
CFLAGS = -Wall -ggdb
TARGET = main.elf
SRC = main.c monocypher.c
#LDFLAGS =
$(TARGET): $(SRC) seed.h
@echo CC $@
@$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
seed.h:
openssl rand 32 \
| xxd -i -n seed \
| sed 's/unsigned char/static uint8_t/g' \
| sed 's/unsigned int/static uint32_t/g' \
| sed 's/};/,};/g' \
| { echo '#include <stdint.h>'; cat; } \
| clang-format > $@
clean:
rm -f $(TARGET)