diff options
| author | cvs2svn <admin@example.com> | 2008-07-28 23:44:12 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2008-07-28 23:44:12 +0000 |
| commit | daac2f633f49a45baa8412c5e4e71e594236e7b8 (patch) | |
| tree | c2b7593b6807015d5bd1bbe95841e718a3b3df42 /src/regress/lib/libssl/testenc.sh | |
| parent | 10837c3c47f1b9d7d1a061fff2327a4e280ba338 (diff) | |
| download | openbsd-pre_openssl_0_9_8h.tar.gz openbsd-pre_openssl_0_9_8h.tar.bz2 openbsd-pre_openssl_0_9_8h.zip | |
This commit was manufactured by cvs2git to create tag 'pre_openssl_0_9_8h'.pre_openssl_0_9_8h
Diffstat (limited to 'src/regress/lib/libssl/testenc.sh')
| -rw-r--r-- | src/regress/lib/libssl/testenc.sh | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/src/regress/lib/libssl/testenc.sh b/src/regress/lib/libssl/testenc.sh deleted file mode 100644 index 355e9cd923..0000000000 --- a/src/regress/lib/libssl/testenc.sh +++ /dev/null | |||
| @@ -1,70 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # $OpenBSD: testenc.sh,v 1.6 2002/01/15 18:51:39 art Exp $ | ||
| 3 | |||
| 4 | |||
| 5 | testsrc=$2/openssl.cnf | ||
| 6 | test=$1/p | ||
| 7 | cmd=/usr/sbin/openssl | ||
| 8 | |||
| 9 | cd $1 | ||
| 10 | |||
| 11 | cat $testsrc >$test; | ||
| 12 | |||
| 13 | echo cat | ||
| 14 | $cmd enc < $test > $test.cipher | ||
| 15 | $cmd enc < $test.cipher >$test.clear | ||
| 16 | cmp $test $test.clear | ||
| 17 | if [ $? != 0 ] | ||
| 18 | then | ||
| 19 | exit 1 | ||
| 20 | else | ||
| 21 | /bin/rm $test.cipher $test.clear | ||
| 22 | fi | ||
| 23 | echo base64 | ||
| 24 | $cmd enc -a -e < $test > $test.cipher | ||
| 25 | $cmd enc -a -d < $test.cipher >$test.clear | ||
| 26 | cmp $test $test.clear | ||
| 27 | if [ $? != 0 ] | ||
| 28 | then | ||
| 29 | exit 1 | ||
| 30 | else | ||
| 31 | /bin/rm $test.cipher $test.clear | ||
| 32 | fi | ||
| 33 | |||
| 34 | /bin/rm -f $test | ||
| 35 | exit 0 | ||
| 36 | |||
| 37 | # These tests are now done by the makefile. | ||
| 38 | |||
| 39 | for i in rc4 \ | ||
| 40 | des-cfb des-ede-cfb des-ede3-cfb \ | ||
| 41 | des-ofb des-ede-ofb des-ede3-ofb \ | ||
| 42 | des-ecb des-ede des-ede3 desx \ | ||
| 43 | des-cbc des-ede-cbc des-ede3-cbc \ | ||
| 44 | rc2-ecb rc2-cfb rc2-ofb rc2-cbc \ | ||
| 45 | bf-ecb bf-cfb bf-ofb bf-cbc rc4 \ | ||
| 46 | cast5-ecb cast5-cfb cast5-ofb cast5-cbc | ||
| 47 | do | ||
| 48 | echo $i | ||
| 49 | $cmd $i -bufsize 113 -e -k test < $test > $test.$i.cipher | ||
| 50 | $cmd $i -bufsize 157 -d -k test < $test.$i.cipher >$test.$i.clear | ||
| 51 | cmp $test $test.$i.clear | ||
| 52 | if [ $? != 0 ] | ||
| 53 | then | ||
| 54 | exit 1 | ||
| 55 | else | ||
| 56 | /bin/rm $test.$i.cipher $test.$i.clear | ||
| 57 | fi | ||
| 58 | |||
| 59 | echo $i base64 | ||
| 60 | $cmd $i -bufsize 113 -a -e -k test < $test > $test.$i.cipher | ||
| 61 | $cmd $i -bufsize 157 -a -d -k test < $test.$i.cipher >$test.$i.clear | ||
| 62 | cmp $test $test.$i.clear | ||
| 63 | if [ $? != 0 ] | ||
| 64 | then | ||
| 65 | exit 1 | ||
| 66 | else | ||
| 67 | /bin/rm $test.$i.cipher $test.$i.clear | ||
| 68 | fi | ||
| 69 | done | ||
| 70 | rm -f $test | ||
