#!/bin/sh
CIPHER=2
FORMAT=0

rm -f *.out >/dev/null 2>&1

time ../pkt_dump -b -y -e${CIPHER} -z${FORMAT} -V vkey -T tkey -o c.out -s s.out \
    -t t.out -c clear.out "$@" test.in
mv gmon.out pkt_dump.gmon

../../decrypt/decrypt -b -o decrypt.out -c c.out \
    -s s.out -t t.out -V vkey -T tkey
mv gmon.out decrypt.gmon

cmp clear.out decrypt.out
