mirror of
https://codeberg.org/scip/twenty4.git
synced 2025-12-16 19:40:57 +01:00
added
This commit is contained in:
20
divtest.sh
Executable file
20
divtest.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
in=111111111111
|
||||
|
||||
echo "- same clear text slightly different key"
|
||||
for K in 1 2 3 4 5 6 7 8; do
|
||||
k="0000000000000000000$K"
|
||||
echo -n "IN: $in, KEY: $k, NONCE: $K, OUT: "
|
||||
echo -n "$in" | ./twenty4 $k $K | hexdump | head -1 | sed 's/^0000000 //'
|
||||
done
|
||||
|
||||
echo
|
||||
|
||||
k="00000000000000000001"
|
||||
echo "- same key, slightly different clear text"
|
||||
for N in 1 2 3 4 5 6 7 8; do
|
||||
in="11111111111$N"
|
||||
echo -n "IN: $in, KEY: $k, NONCE: $N, OUT: "
|
||||
echo -n "$in" | ./twenty4 $k $N | hexdump | head -1 | sed 's/^0000000 //'
|
||||
done
|
||||
Reference in New Issue
Block a user