| #!/bin/sh |
| |
| test=./test.txt |
| |
| cat $0 >$test; |
| |
| for i in rc4 des-cfb des-ofb des-ecb des-cbc des-ede des-ede3 \ |
| des-cbc-ede des-cbc-ede3 idea-ecb idea-cfb idea-ofb idea-cbc |
| do |
| echo $i |
| ../apps/ssleay $i -e -k test < $test > $test.$i.cipher |
| ../apps/ssleay $i -d -k test < $test.$i.cipher >$test.$i.clear |
| cmp $test $test.$i.clear |
| if [ $? != 0 ] |
| then |
| exit 1 |
| else |
| /bin/rm $test.$i.cipher $test.$i.clear |
| fi |
| |
| echo $i base64 |
| ../apps/ssleay $i -a -e -k test < $test > $test.$i.cipher |
| ../apps/ssleay $i -a -d -k test < $test.$i.cipher >$test.$i.clear |
| cmp $test $test.$i.clear |
| if [ $? != 0 ] |
| then |
| exit 1 |
| else |
| /bin/rm $test.$i.cipher $test.$i.clear |
| fi |
| done |