diff options
Diffstat (limited to 'src/lib/libssl/test/test.txt')
-rw-r--r-- | src/lib/libssl/test/test.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/libssl/test/test.txt b/src/lib/libssl/test/test.txt new file mode 100644 index 0000000000..c6d8d50ba9 --- /dev/null +++ b/src/lib/libssl/test/test.txt | |||
@@ -0,0 +1,31 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | test=./test.txt | ||
4 | |||
5 | cat $0 >$test; | ||
6 | |||
7 | for i in rc4 des-cfb des-ofb des-ecb des-cbc des-ede des-ede3 \ | ||
8 | des-cbc-ede des-cbc-ede3 idea-ecb idea-cfb idea-ofb idea-cbc | ||
9 | do | ||
10 | echo $i | ||
11 | ../apps/ssleay $i -e -k test < $test > $test.$i.cipher | ||
12 | ../apps/ssleay $i -d -k test < $test.$i.cipher >$test.$i.clear | ||
13 | cmp $test $test.$i.clear | ||
14 | if [ $? != 0 ] | ||
15 | then | ||
16 | exit 1 | ||
17 | else | ||
18 | /bin/rm $test.$i.cipher $test.$i.clear | ||
19 | fi | ||
20 | |||
21 | echo $i base64 | ||
22 | ../apps/ssleay $i -a -e -k test < $test > $test.$i.cipher | ||
23 | ../apps/ssleay $i -a -d -k test < $test.$i.cipher >$test.$i.clear | ||
24 | cmp $test $test.$i.clear | ||
25 | if [ $? != 0 ] | ||
26 | then | ||
27 | exit 1 | ||
28 | else | ||
29 | /bin/rm $test.$i.cipher $test.$i.clear | ||
30 | fi | ||
31 | done | ||