mirror of
https://codeberg.org/scip/twenty4.git
synced 2026-02-04 23:20:58 +01:00
initial commit
This commit is contained in:
32
analyze/analyze.sh
Executable file
32
analyze/analyze.sh
Executable 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user