# $Id: Makefile 60 2005-05-06 11:36:47Z olau $

CC = gcc
SHELL = /bin/sh
OPTIMIZE  = -O3 -march=c3 -msse
DEBUGFLAGS = -DDEBUG -g3 -ggdb
WARNINGFLAGS = -Wall
CFLAGS = $(OPTIMIZE) $(WARNINGFLAGS)
CXXFLAGS = $(OPTIMIZE) $(WARNINGFLAGS)
SWITCHES = 
MYMAKEFLAGS = 'OPTIMIZE=$(OPTIMIZE)' 'CC=$(CC)' 'SWITCHES=$(SWITCHES)'
MFLAGS = 
O = .o

SUBDIRS = core timer cache-benchmark sdktest 

all: padlock-sdk
	@for i in $(SUBDIRS); do \
	echo "make all in $$i .. "; \
	(cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS) all); done 

padlock-sdk: padlock-sdk/linux/src/padlock.o

padlock-sdk/linux/src/padlock.o:
	cd padlock-sdk/linux/src; $(MAKE) everything

clean:
	@for i in $(SUBDIRS); do \
	echo "make all in $$i .. "; \
	(cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS) clean); done; \
	(cd padlock-sdk/linux/src; $(MAKE) clean)

test:
	$(RM) test.csv
	./cache-benchmark/cache-benchmark demoinput --log "test.csv" --blocksize 4096 --iterations 10 --repetitions 3 --mode ecb
	./cache-benchmark/cache-benchmark demoinput --log "test.csv" --blocksize 4096 --iterations 10 --repetitions 3 --mode cbc
	./cache-benchmark/cache-benchmark demoinput --log "test.csv" --blocksize 4096 --iterations 10 --repetitions 3 --mode cfb
	./cache-benchmark/cache-benchmark demoinput --log "test.csv" --blocksize 4096 --iterations 10 --repetitions 3 --mode ofb

benchmark-simple:
	$(RM) benchmark.csv
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 16
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 32
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 64
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 128
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 256
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 512
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 1024
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 2048
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 4096
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 8192
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 16384
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 32768
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 65536
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 131072
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 262144
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 524288
	./cache-benchmark/cache-benchmark demoinput --mode ECB --log "benchmark.csv" --iterations 10 --blocksize 1048576

cache-benchmarks:
	$(RM) benchmark.csv
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 16      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 32      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 64      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 128     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 256     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 512     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput --mode CFB --log "benchmark.csv" --iterations 10 --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f

cache-benchmarks-sw:
	$(RM) benchmark.csv
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 2097152 --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 4194304 --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput --mode CBC --log "benchmark.csv" --iterations 10 --blocksize 8388608 --key 0102030405060708090a0b0c0d0e0f00

benchmarks-ecb:
	$(RM) benchmark-128-ecb.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ecb.csv" --iterations 10 --mode ecb --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00
	$(RM) benchmark-192-ecb.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 16      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 32      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 64      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 128     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 256     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 512     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ecb.csv" --iterations 10 --mode ecb --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f001011121314151617
	$(RM) benchmark-256-ecb.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ecb.csv" --iterations 10 --mode ecb --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f


benchmarks-cbc:
	$(RM) benchmark-128-cbc.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cbc.csv" --iterations 10 --mode cbc --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00
	$(RM) benchmark-192-cbc.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 16      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 32      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 64      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 128     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 256     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 512     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cbc.csv" --iterations 10 --mode cbc --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f001011121314151617
	$(RM) benchmark-256-cbc.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cbc.csv" --iterations 10 --mode cbc --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f


benchmarks-cfb:
	$(RM) benchmark-128-cfb.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-cfb.csv" --iterations 10 --mode cfb --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00
	$(RM) benchmark-192-cfb.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 16      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 32      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 64      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 128     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 256     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 512     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-cfb.csv" --iterations 10 --mode cfb --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f001011121314151617
	$(RM) benchmark-256-cfb.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-cfb.csv" --iterations 10 --mode cfb --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f


benchmarks-ofb:
	$(RM) benchmark-128-ofb.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-128-ofb.csv" --iterations 10 --mode ofb --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00
	$(RM) benchmark-192-ofb.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 16      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 32      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 64      --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 128     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 256     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 512     --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f001011121314151617
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-192-ofb.csv" --iterations 10 --mode ofb --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f001011121314151617
	$(RM) benchmark-256-ofb.csv
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 16      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 32      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 64      --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 128     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 256     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 512     --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 1024    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 2048    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 4096    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 8192    --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 16384   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 32768   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 65536   --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 131072  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 262144  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 524288  --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f
	./cache-benchmark/cache-benchmark demoinput -e --log "benchmark-256-ofb.csv" --iterations 10 --mode ofb --blocksize 1048576 --key 0102030405060708090a0b0c0d0e0f00101112131415161718191a1b1c1d1e1f



