mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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
This commit is contained in:
parent
5ff3a3a98f
commit
8b3f5a8ad7
5 changed files with 84 additions and 312 deletions
|
|
@ -3,8 +3,8 @@ CC=gcc
|
|||
CXX=g++
|
||||
LD=g++
|
||||
CFLAGS=-O3 -g -std=c99 -Wall `pkg-config --cflags libusb-1.0` $(DEFINES)
|
||||
CXXFLAGS=-O3 -g -Wall $(DEFINES)
|
||||
LDFLAGS=`pkg-config --libs libusb-1.0`
|
||||
CXXFLAGS=-O3 -g -Wall `pkg-config --cflags libcrypto++` $(DEFINES)
|
||||
LDFLAGS=`pkg-config --libs libusb-1.0` `pkg-config --libs libcrypto++`
|
||||
BINS=elftosb sbtoelf sbloader rsrctool elftosb1
|
||||
|
||||
all: $(BINS)
|
||||
|
|
@ -15,10 +15,10 @@ all: $(BINS)
|
|||
%.o: %.cpp
|
||||
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
||||
|
||||
sbtoelf: sbtoelf.o crc.o crypto.o aes128.o sha1.o xorcrypt.o dbparser.o elf.o misc.o sb.o sb1.o
|
||||
sbtoelf: sbtoelf.o crc.o crypto.o sha1.o xorcrypt.o dbparser.o elf.o misc.o sb.o sb1.o
|
||||
$(LD) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
elftosb: elftosb.o crc.o crypto.o aes128.o sha1.o elf.o dbparser.o misc.o sb.o
|
||||
elftosb: elftosb.o crc.o crypto.o sha1.o elf.o dbparser.o misc.o sb.o
|
||||
$(LD) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
elftosb1: elftosb1.o xorcrypt.o elf.o misc.o sb1.o
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue