diff options
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 | ||
