]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/csh -f | |
2 | # | |
3 | # Create an AES vector text file, using aesVect, which will be compared against | |
4 | # ecb_vk.txt or ecb_vt.txt. | |
5 | # | |
6 | # usage: makeVectors r|t vectorStyle headerFile outFile | |
7 | # | |
8 | if ( $#argv != 4 ) then | |
9 | echo Usage: makeVectors r\|t vectorStyle headerFile outFile | |
10 | exit(1) | |
11 | endif | |
12 | # | |
13 | # start with header | |
14 | # | |
15 | set outFile=$argv[4] | |
16 | set separator="==========" | |
17 | ||
18 | cat $argv[3] > $outFile | |
19 | # | |
20 | # run thru all three key sizes | |
21 | # | |
22 | aesVect $argv[1] $argv[2] k=128 >> $outFile | |
23 | echo $separator >> $outFile | |
24 | echo "" >> $outFile | |
25 | aesVect $argv[1] $argv[2] k=192 >> $outFile | |
26 | echo $separator >> $outFile | |
27 | echo "" >> $outFile | |
28 | aesVect $argv[1] $argv[2] k=256 >> $outFile | |
29 | echo $separator >> $outFile | |
30 | ||
31 |