6 if ../apps/openssl list-standard-commands | grep '^rsa$' >/dev/null; then
7 echo openssl rsa command available
9 echo openssl rsa command not available, skipping test
13 cmd='../apps/openssl rsa'
15 if [ "$1"x != "x" ]; then
21 echo testing rsa conversions
25 $cmd -in fff.p -inform p -outform d >f.d
26 if [ $? != 0 ]; then exit 1; fi
28 #$cmd -in fff.p -inform p -outform t >f.t
29 #if [ $? != 0 ]; then exit 1; fi
31 $cmd -in fff.p -inform p -outform p >f.p
32 if [ $? != 0 ]; then exit 1; fi
35 $cmd -in f.d -inform d -outform d >ff.d1
36 if [ $? != 0 ]; then exit 1; fi
38 #$cmd -in f.t -inform t -outform d >ff.d2
39 #if [ $? != 0 ]; then exit 1; fi
41 $cmd -in f.p -inform p -outform d >ff.d3
42 if [ $? != 0 ]; then exit 1; fi
45 #$cmd -in f.d -inform d -outform t >ff.t1
46 #if [ $? != 0 ]; then exit 1; fi
48 #$cmd -in f.t -inform t -outform t >ff.t2
49 #if [ $? != 0 ]; then exit 1; fi
51 #$cmd -in f.p -inform p -outform t >ff.t3
52 #if [ $? != 0 ]; then exit 1; fi
55 $cmd -in f.d -inform d -outform p >ff.p1
56 if [ $? != 0 ]; then exit 1; fi
58 #$cmd -in f.t -inform t -outform p >ff.p2
59 #if [ $? != 0 ]; then exit 1; fi
61 $cmd -in f.p -inform p -outform p >ff.p3
62 if [ $? != 0 ]; then exit 1; fi
65 if [ $? != 0 ]; then exit 1; fi
67 if [ $? != 0 ]; then exit 1; fi
69 #if [ $? != 0 ]; then exit 1; fi
71 if [ $? != 0 ]; then exit 1; fi
74 #if [ $? != 0 ]; then exit 1; fi
76 #if [ $? != 0 ]; then exit 1; fi
78 #if [ $? != 0 ]; then exit 1; fi
81 if [ $? != 0 ]; then exit 1; fi
83 #if [ $? != 0 ]; then exit 1; fi
85 if [ $? != 0 ]; then exit 1; fi
87 /bin/rm -f f.* ff.* fff.*