diff options
| author | cvs2svn <admin@example.com> | 2002-05-15 02:29:23 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2002-05-15 02:29:23 +0000 |
| commit | fd9566423b542798f5c8b06e68101a9ea5bb9885 (patch) | |
| tree | f2cc037857a260afc5aaaaaa6cf62d06923c6273 /src/lib/libssl/test/trsa.com | |
| parent | 536c76cbb863bab152f19842ab88772c01e922c7 (diff) | |
| download | openbsd-fd9566423b542798f5c8b06e68101a9ea5bb9885.tar.gz openbsd-fd9566423b542798f5c8b06e68101a9ea5bb9885.tar.bz2 openbsd-fd9566423b542798f5c8b06e68101a9ea5bb9885.zip | |
This commit was manufactured by cvs2git to create branch 'openssl'.
Diffstat (limited to 'src/lib/libssl/test/trsa.com')
| -rw-r--r-- | src/lib/libssl/test/trsa.com | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/lib/libssl/test/trsa.com b/src/lib/libssl/test/trsa.com new file mode 100644 index 0000000000..9c9083d02b --- /dev/null +++ b/src/lib/libssl/test/trsa.com | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | $! TRSA.COM -- Tests rsa keys | ||
| 2 | $ | ||
| 3 | $ __arch := VAX | ||
| 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP | ||
| 5 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] | ||
| 6 | $ | ||
| 7 | $ cmd := mcr 'exe_dir'openssl rsa | ||
| 8 | $ | ||
| 9 | $ t := testrsa.pem | ||
| 10 | $ if p1 .nes. "" then t = p1 | ||
| 11 | $ | ||
| 12 | $ write sys$output "testing RSA conversions" | ||
| 13 | $ copy 't' fff.p | ||
| 14 | $ | ||
| 15 | $ write sys$output "p -> d" | ||
| 16 | $ 'cmd' -in fff.p -inform p -outform d -out f.d | ||
| 17 | $ if $severity .ne. 1 then exit 3 | ||
| 18 | $! write sys$output "p -> t" | ||
| 19 | $! 'cmd' -in fff.p -inform p -outform t -out f.t | ||
| 20 | $! if $severity .ne. 1 then exit 3 | ||
| 21 | $ write sys$output "p -> p" | ||
| 22 | $ 'cmd' -in fff.p -inform p -outform p -out f.p | ||
| 23 | $ if $severity .ne. 1 then exit 3 | ||
| 24 | $ | ||
| 25 | $ write sys$output "d -> d" | ||
| 26 | $ 'cmd' -in f.d -inform d -outform d -out ff.d1 | ||
| 27 | $ if $severity .ne. 1 then exit 3 | ||
| 28 | $! write sys$output "t -> d" | ||
| 29 | $! 'cmd' -in f.t -inform t -outform d -out ff.d2 | ||
| 30 | $! if $severity .ne. 1 then exit 3 | ||
| 31 | $ write sys$output "p -> d" | ||
| 32 | $ 'cmd' -in f.p -inform p -outform d -out ff.d3 | ||
| 33 | $ if $severity .ne. 1 then exit 3 | ||
| 34 | $ | ||
| 35 | $! write sys$output "d -> t" | ||
| 36 | $! 'cmd' -in f.d -inform d -outform t -out ff.t1 | ||
| 37 | $! if $severity .ne. 1 then exit 3 | ||
| 38 | $! write sys$output "t -> t" | ||
| 39 | $! 'cmd' -in f.t -inform t -outform t -out ff.t2 | ||
| 40 | $! if $severity .ne. 1 then exit 3 | ||
| 41 | $! write sys$output "p -> t" | ||
| 42 | $! 'cmd' -in f.p -inform p -outform t -out ff.t3 | ||
| 43 | $! if $severity .ne. 1 then exit 3 | ||
| 44 | $ | ||
| 45 | $ write sys$output "d -> p" | ||
| 46 | $ 'cmd' -in f.d -inform d -outform p -out ff.p1 | ||
| 47 | $ if $severity .ne. 1 then exit 3 | ||
| 48 | $! write sys$output "t -> p" | ||
| 49 | $! 'cmd' -in f.t -inform t -outform p -out ff.p2 | ||
| 50 | $! if $severity .ne. 1 then exit 3 | ||
| 51 | $ write sys$output "p -> p" | ||
| 52 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | ||
| 53 | $ if $severity .ne. 1 then exit 3 | ||
| 54 | $ | ||
| 55 | $ difference/output=nl: fff.p f.p | ||
| 56 | $ if $severity .ne. 1 then exit 3 | ||
| 57 | $ difference/output=nl: fff.p ff.p1 | ||
| 58 | $ if $severity .ne. 1 then exit 3 | ||
| 59 | $! difference/output=nl: fff.p ff.p2 | ||
| 60 | $! if $severity .ne. 1 then exit 3 | ||
| 61 | $ difference/output=nl: fff.p ff.p3 | ||
| 62 | $ if $severity .ne. 1 then exit 3 | ||
| 63 | $ | ||
| 64 | $! difference/output=nl: f.t ff.t1 | ||
| 65 | $! if $severity .ne. 1 then exit 3 | ||
| 66 | $! difference/output=nl: f.t ff.t2 | ||
| 67 | $! if $severity .ne. 1 then exit 3 | ||
| 68 | $! difference/output=nl: f.t ff.t3 | ||
| 69 | $! if $severity .ne. 1 then exit 3 | ||
| 70 | $ | ||
| 71 | $ difference/output=nl: f.p ff.p1 | ||
| 72 | $ if $severity .ne. 1 then exit 3 | ||
| 73 | $! difference/output=nl: f.p ff.p2 | ||
| 74 | $! if $severity .ne. 1 then exit 3 | ||
| 75 | $ difference/output=nl: f.p ff.p3 | ||
| 76 | $ if $severity .ne. 1 then exit 3 | ||
| 77 | $ | ||
| 78 | $ delete f.*;*,ff.*;*,fff.*;* | ||
