|
|
1.1 root 1: RDEMO Test Scripts
2:
3: RSA Laboratories
1.1.1.2 ! root 4: March 21, 1994
! 5:
! 6: Version 2.0
! 7:
! 8: Copyright (C) 1991-4 RSA Laboratories, a division of RSA Data
! 9: Security, Inc. All rights reserved.
1.1 root 10:
11:
12: RDEMO comes with several test scripts that test RSAREF cryptographic
13: operations of various key sizes.
14:
1.1.1.2 ! root 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
1.1 root 19:
1.1.1.2 ! root 20: rdemo < 508.in
1.1 root 21:
1.1.1.2 ! root 22: to exercise the test script '508.in'. Use the '-s' flag to suppress
! 23: RDEMO's prompts.
1.1 root 24:
25: The scripts work with a number of input files. Each script also
26: produces output files that you can compare against reference files
1.1.1.2 ! root 27: supplied with RDEMO. Both the scripts and the reference files are
! 28: stored in the 'rdemo/scripts' subdirectory.
1.1 root 29:
1.1.1.2 ! root 30: See the file 'rdemo.txt' in the 'doc' subdirectory for more
! 31: information on the demonstration program.
1.1 root 32:
33:
1.1.1.2 ! root 34: '508.in' script
1.1 root 35:
1.1.1.2 ! root 36: 1. Generates a 508-bit RSA key pair, writing the key to
! 37: '508.key'.
1.1 root 38:
1.1.1.2 ! root 39: 2. Signs 'file' with private key and MD5 message-digest
! 40: algorithm, writing signature to '508-5.sig'.
1.1 root 41:
1.1.1.2 ! root 42: 3. Verifies signature.
! 43:
! 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'.
! 48:
! 49: 5. Opens envelope and displays result: should be "Envelope
! 50: opened."
! 51:
! 52: '512a.in' script
1.1 root 53:
1.1.1.2 ! root 54: 1. Signs 'file' with first built-in private key and MD2
! 55: message-digest algorithm, writing signature to '512a2.sig'.
1.1 root 56:
1.1.1.2 ! root 57: 2. Verifies signature.
1.1 root 58:
1.1.1.2 ! root 59: 3. Repeats (1) and (2) with MD5. Signature in '512a5.sig'.
1.1 root 60:
1.1.1.2 ! root 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'.
1.1 root 65:
1.1.1.2 ! root 66: 5. Opens envelope and displays result.
1.1 root 67:
1.1.1.2 ! root 68: 6. Repeats (4) and (5) with DESX-CBC, DES-EDE2-CBC, and
! 69: DES-EDE3-CBC. Files: '512ax.*', '512a2.*', '512a3.*'.
1.1 root 70:
1.1.1.2 ! root 71: 7. Repeats (3-5) on 'bigfile'. Result should be "Envelope
! 72: opened \ This is a big file", repeated a few times.
1.1 root 73:
1.1.1.2 ! root 74: '512b.in'
1.1 root 75:
1.1.1.2 ! root 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.
1.1 root 78:
1.1.1.2 ! root 79: '767.in' and '1024.in'
1.1 root 80:
1.1.1.2 ! root 81: Same as '508.in', except that '508' becomes '767' or '1024';
! 82: new key pairs are generated in both cases.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.