diff options
author | cvs2svn <admin@example.com> | 1998-10-05 20:13:17 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 1998-10-05 20:13:17 +0000 |
commit | e82f18fab47b698d93971f576f962a3068132912 (patch) | |
tree | 681519717892864935c3d0533cf171098afa649a /src/lib/libssl/test/test.txt | |
parent | 536c76cbb863bab152f19842ab88772c01e922c7 (diff) | |
download | openbsd-SSLeay_0_9_0b.tar.gz openbsd-SSLeay_0_9_0b.tar.bz2 openbsd-SSLeay_0_9_0b.zip |
This commit was manufactured by cvs2git to create tag 'SSLeay_0_9_0b'.SSLeay_0_9_0b
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 | ||