~increscent/aes-ccm

aes-ccm/Makefile -rw-r--r-- 585 bytes
6fdb84d8 — Robert Williams Found the issue: the msg_len parameter should be 16-bit, but it's 8-bit 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CC 		= gcc
CFLAGS  = -Wall -Werror -Og -g
LDFLAGS = -lssl -lcrypto -lpthread -lrob

.PHONY: all
all: encrypt decrypt zencrypt

decrypt: decrypt.c lib.c lib.h
	$(CC) -o decrypt decrypt.c lib.c $(CFLAGS) $(LDFLAGS)

encrypt: encrypt.c lib.c lib.h
	$(CC) -o encrypt encrypt.c lib.c $(CFLAGS) $(LDFLAGS)

zencrypt: zencrypt.c lib.c lib.h
	$(CC) -o zencrypt zencrypt.c lib.c tinycrypt/lib/source/*.c -Itinycrypt/lib/include $(CFLAGS) $(LDFLAGS)

.PHONY: compare
compare: encrypt zencrypt
	./encrypt | head -n 1
	./zencrypt | head -n 1

.PHONY: clean
clean:
	rm -f encrypt decrypt zencrypt