8 Copyright (C) 1991-4 RSA Laboratories, a division of RSA Data
9 Security, Inc. All rights reserved.
12 RDEMO comes with several test scripts that test RSAREF cryptographic
13 operations of various key sizes.
15 The test scripts are: '508.in', '512a.in', '512b.in', '767.in' and
16 '1024.in'. The scripts consist of RDEMO commands. To exercise a
17 script, redirect RDEMO's input to the script. For example, on a UNIX
18 or DOS system you would run the command
22 to exercise the test script '508.in'. Use the '-s' flag to suppress
25 The scripts work with a number of input files. Each script also
26 produces output files that you can compare against reference files
27 supplied with RDEMO. Both the scripts and the reference files are
28 stored in the 'rdemo/scripts' subdirectory.
30 See the file 'rdemo.txt' in the 'doc' subdirectory for more
31 information on the demonstration program.
36 1. Generates a 508-bit RSA key pair, writing the key to
39 2. Signs 'file' with private key and MD5 message-digest
40 algorithm, writing signature to '508-5.sig'.
42 3. Verifies signature.
44 4. Seals 'file' in envelope with public key and DES-CBC
45 data encryption algorithm, writing encrypted file to
46 '508-1.env', encrypted data encryption key to '508-1.key',
47 and initialization vector to '508-1.iv'.
49 5. Opens envelope and displays result: should be "Envelope
54 1. Signs 'file' with first built-in private key and MD2
55 message-digest algorithm, writing signature to '512a2.sig'.
57 2. Verifies signature.
59 3. Repeats (1) and (2) with MD5. Signature in '512a5.sig'.
61 4. Seals 'file' in envelope with first built-in public key and
62 DES-CBC data encryption algorithm, writing encrypted file to
63 '512a1.env', encrypted data encryption key to '512a1.key',
64 and initialization vector to '512a1.iv'.
66 5. Opens envelope and displays result.
68 6. Repeats (4) and (5) with DESX-CBC, DES-EDE2-CBC, and
69 DES-EDE3-CBC. Files: '512ax.*', '512a2.*', '512a3.*'.
71 7. Repeats (3-5) on 'bigfile'. Result should be "Envelope
72 opened \ This is a big file", repeated a few times.
76 Same as '508.in', except that '508' becomes '512b', and second
77 built-in key pair is used, rather than generating a new one.
79 '767.in' and '1024.in'
81 Same as '508.in', except that '508' becomes '767' or '1024';
82 new key pairs are generated in both cases.