mktst.sh (316B)
1 #!/bin/sh 2 for i in 0 1 2 3 4 5 3 do 4 file="aes_cts_$i.txt" 5 grep "Key" $file | sed -e 's;Key:;;' | hex > key$i 6 grep "IV" $file | sed -e 's;IV:;;' | hex > iv$i 7 grep "Input" $file | sed -e 's;Input:;;' | hex > plaintext$i 8 grep "Output" $file | sed -e 's;Output:;;' | hex | btoa > ciphertext$i 9 done