From 8b3f5a8ad7434850804a4a664d2b07c6ffa9b1c7 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 3 Jan 2017 13:56:48 +0100 Subject: imxtools/sbtools: switch AES implementation to Crypto++ Instead of having our own copy of the AES code, use a good library to do that. Crypto++ is well-maintained, supports a lot of ciphers, works on many OSes, and is optimized for many architectures. Change-Id: I7d7d24b47993206d7338c5f9bac8bbdd3915a667 --- rbutil/mkimxboot/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rbutil') diff --git a/rbutil/mkimxboot/Makefile b/rbutil/mkimxboot/Makefile index 7441e162c2..e635f64103 100644 --- a/rbutil/mkimxboot/Makefile +++ b/rbutil/mkimxboot/Makefile @@ -10,11 +10,12 @@ IMXTOOLS_DIR=../../utils/imxtools/sbtools/ CFLAGS += -I$(IMXTOOLS_DIR) -Wall # std=gnu99 is required by MinGW on Windows (c99 is sufficient for Linux / MXE) CFLAGS += -std=gnu99 -g -O3 +LDFLAGS += -lcrypto++ OUTPUT = mkimxboot # inputs for lib -IMXTOOLS_SOURCES = misc.c sb.c crypto.cpp crc.c aes128.c sha1.c elf.c +IMXTOOLS_SOURCES = misc.c sb.c crypto.cpp crc.c sha1.c elf.c LIBSOURCES := dualboot.c mkimxboot.c md5.c \ $(addprefix $(IMXTOOLS_DIR),$(IMXTOOLS_SOURCES)) # inputs for binary only -- cgit v1.2.3