Skip to content

Commit c69d098

Browse files
committed
Add AES GCM file encryptions
1 parent b1d05ac commit c69d098

3 files changed

Lines changed: 983 additions & 3 deletions

File tree

crypto/aes/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
CC=gcc
22
CFLAGS=-Wall
3-
LIBS= -lwolfssl
3+
LIBS= -lwolfssl -lm
44

5-
all: aes-file-encrypt aescfb-file-encrypt aesctr-file-encrypt
5+
all: aes-file-encrypt aescfb-file-encrypt aesctr-file-encrypt aesgcm-file-encrypt
66

77
aes-file-encrypt: aes-file-encrypt.o
88
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
@@ -13,7 +13,10 @@ aescfb-file-encrypt: aescfb-file-encrypt.o
1313
aesctr-file-encrypt: aesctr-file-encrypt.o
1414
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
1515

16+
aesgcm-file-encrypt: aesgcm-file-encrypt.o
17+
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
18+
1619
.PHONY: clean
1720

1821
clean:
19-
rm -f *.o aes-file-encrypt aescfb-file-encrypt aesctr-file-encrypt
22+
rm -f *.o aes-file-encrypt aescfb-file-encrypt aesctr-file-encrypt aesgcm-file-encrypt text*

0 commit comments

Comments
 (0)