mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
7d7d2cbcb0
Submitted by: Richard Levitte <richard@levitte.org>
79 lines
2.3 KiB
Plaintext
79 lines
2.3 KiB
Plaintext
$! TRSA.COM -- Tests rsa keys
|
|
$
|
|
$ __arch := VAX
|
|
$ if f$getsyi("cpu") .ge. 128 then __arch := AXP
|
|
$ exe_dir := sys$disk:[-.'__arch'.exe.apps]
|
|
$
|
|
$ cmd := mcr 'exe_dir'openssl rsa
|
|
$
|
|
$ t := testrsa.pem
|
|
$ if p1 .nes. "" then t = p1
|
|
$
|
|
$ write sys$output "testing RSA conversions"
|
|
$ copy 't' fff.p
|
|
$
|
|
$ write sys$output "p -> d"
|
|
$ 'cmd' -in fff.p -inform p -outform d -out f.d
|
|
$ if $severity .ne. 1 then exit 3
|
|
$! write sys$output "p -> t"
|
|
$! 'cmd' -in fff.p -inform p -outform t -out f.t
|
|
$! if $severity .ne. 1 then exit 3
|
|
$ write sys$output "p -> p"
|
|
$ 'cmd' -in fff.p -inform p -outform p -out f.p
|
|
$ if $severity .ne. 1 then exit 3
|
|
$
|
|
$ write sys$output "d -> d"
|
|
$ 'cmd' -in f.d -inform d -outform d -out ff.d1
|
|
$ if $severity .ne. 1 then exit 3
|
|
$! write sys$output "t -> d"
|
|
$! 'cmd' -in f.t -inform t -outform d -out ff.d2
|
|
$! if $severity .ne. 1 then exit 3
|
|
$ write sys$output "p -> d"
|
|
$ 'cmd' -in f.p -inform p -outform d -out ff.d3
|
|
$ if $severity .ne. 1 then exit 3
|
|
$
|
|
$! write sys$output "d -> t"
|
|
$! 'cmd' -in f.d -inform d -outform t -out ff.t1
|
|
$! if $severity .ne. 1 then exit 3
|
|
$! write sys$output "t -> t"
|
|
$! 'cmd' -in f.t -inform t -outform t -out ff.t2
|
|
$! if $severity .ne. 1 then exit 3
|
|
$! write sys$output "p -> t"
|
|
$! 'cmd' -in f.p -inform p -outform t -out ff.t3
|
|
$! if $severity .ne. 1 then exit 3
|
|
$
|
|
$ write sys$output "d -> p"
|
|
$ 'cmd' -in f.d -inform d -outform p -out ff.p1
|
|
$ if $severity .ne. 1 then exit 3
|
|
$! write sys$output "t -> p"
|
|
$! 'cmd' -in f.t -inform t -outform p -out ff.p2
|
|
$! if $severity .ne. 1 then exit 3
|
|
$ write sys$output "p -> p"
|
|
$ 'cmd' -in f.p -inform p -outform p -out ff.p3
|
|
$ if $severity .ne. 1 then exit 3
|
|
$
|
|
$ difference/output=nl: fff.p f.p
|
|
$ if $severity .ne. 1 then exit 3
|
|
$ difference/output=nl: fff.p ff.p1
|
|
$ if $severity .ne. 1 then exit 3
|
|
$! difference/output=nl: fff.p ff.p2
|
|
$! if $severity .ne. 1 then exit 3
|
|
$ difference/output=nl: fff.p ff.p3
|
|
$ if $severity .ne. 1 then exit 3
|
|
$
|
|
$! difference/output=nl: f.t ff.t1
|
|
$! if $severity .ne. 1 then exit 3
|
|
$! difference/output=nl: f.t ff.t2
|
|
$! if $severity .ne. 1 then exit 3
|
|
$! difference/output=nl: f.t ff.t3
|
|
$! if $severity .ne. 1 then exit 3
|
|
$
|
|
$ difference/output=nl: f.p ff.p1
|
|
$ if $severity .ne. 1 then exit 3
|
|
$! difference/output=nl: f.p ff.p2
|
|
$! if $severity .ne. 1 then exit 3
|
|
$ difference/output=nl: f.p ff.p3
|
|
$ if $severity .ne. 1 then exit 3
|
|
$
|
|
$ delete f.*;*,ff.*;*,fff.*;*
|