initial commit

This commit is contained in:
TLINDEN
2015-09-01 22:53:00 +02:00
parent 9f58440588
commit 71ec0f780f
10 changed files with 886 additions and 2 deletions

32
analyze/analyze.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/sh
an=./analyze
cr=./stream
mkdir -p t
jot () {
r=$1;
if test -z "$r"; then
echo "jot <rounds>";
else
perl -e "foreach(0..$r){print \"\$_\n\";}";
fi
}
./prepare-analyze
for L in `jot 255`; do
XL=`printf "%02x" $L`
clear="t/$XL.clear"
for K in `jot 255`; do
XK=`printf "%02x" $K`
cipher="t/$XLx$XK.cipher"
cat $clear | $cr 0x$K e > $cipher
echo -n "$XL w/ $XK: "
$an $cipher 1
rm -f $cipher
done
done