File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11CC =gcc
22CFLAGS =-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
77aes-file-encrypt : aes-file-encrypt.o
88 $(CC ) -o $@ $^ $(CFLAGS ) $(LIBS )
@@ -13,7 +13,10 @@ aescfb-file-encrypt: aescfb-file-encrypt.o
1313aesctr-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
1821clean :
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 *
Original file line number Diff line number Diff line change 2222#include <stdio.h>
2323#include <unistd.h>
2424#include <termios.h>
25- #include <wolfssl/options.h>
25+
26+ #ifndef WOLFSSL_USER_SETTINGS
27+ #include <wolfssl/options.h>
28+ #endif
29+ #include <wolfssl/wolfcrypt/settings.h>
2630#include <wolfssl/wolfcrypt/aes.h>
2731#include <wolfssl/wolfcrypt/sha256.h>
2832#include <wolfssl/wolfcrypt/random.h>
2933#include <wolfssl/wolfcrypt/pwdbased.h>
3034
3135#if defined(HAVE_PBKDF2 ) && !defined(NO_PWDBASED )
36+
3237#define SALT_SIZE 8
3338
3439/*
You can’t perform that action at this time.
0 commit comments