diff options
| author | cvs2svn <admin@example.com> | 1998-10-19 21:47:12 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 1998-10-19 21:47:12 +0000 |
| commit | 5170039cf1df2194faa85741f0733977525cd5c0 (patch) | |
| tree | c667406046ddb1efca5ed4316b02e43494241660 /src/lib/libssl/test/test.txt | |
| parent | 536c76cbb863bab152f19842ab88772c01e922c7 (diff) | |
| download | openbsd-OPENBSD_2_4_BASE.tar.gz openbsd-OPENBSD_2_4_BASE.tar.bz2 openbsd-OPENBSD_2_4_BASE.zip | |
This commit was manufactured by cvs2git to create tag 'OPENBSD_2_4_BASE'.OPENBSD_2_4_BASE
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 | ||
