--- pgp/rsaref/doc/scripts.txt 2018/04/24 16:40:41 1.1 +++ pgp/rsaref/doc/scripts.txt 2018/04/24 16:41:50 1.1.1.2 @@ -1,82 +1,62 @@ - RDEMO Test Scripts - - RSA Laboratories - March 21, 1994 - - Version 2.0 - - Copyright (C) 1991-4 RSA Laboratories, a division of RSA Data - Security, Inc. All rights reserved. - - -RDEMO comes with several test scripts that test RSAREF cryptographic -operations of various key sizes. - -The test scripts are: '508.in', '512a.in', '512b.in', '767.in' and -'1024.in'. The scripts consist of RDEMO commands. To exercise a -script, redirect RDEMO's input to the script. For example, on a UNIX -or DOS system you would run the command - - rdemo < 508.in - -to exercise the test script '508.in'. Use the '-s' flag to suppress -RDEMO's prompts. - -The scripts work with a number of input files. Each script also -produces output files that you can compare against reference files -supplied with RDEMO. Both the scripts and the reference files are -stored in the 'rdemo/scripts' subdirectory. - -See the file 'rdemo.txt' in the 'doc' subdirectory for more -information on the demonstration program. - - -'508.in' script - - 1. Generates a 508-bit RSA key pair, writing the key to - '508.key'. - - 2. Signs 'file' with private key and MD5 message-digest - algorithm, writing signature to '508-5.sig'. - - 3. Verifies signature. - - 4. Seals 'file' in envelope with public key and DES-CBC - data encryption algorithm, writing encrypted file to - '508-1.env', encrypted data encryption key to '508-1.key', - and initialization vector to '508-1.iv'. - - 5. Opens envelope and displays result: should be "Envelope - opened." - -'512a.in' script - - 1. Signs 'file' with first built-in private key and MD2 - message-digest algorithm, writing signature to '512a2.sig'. - - 2. Verifies signature. - - 3. Repeats (1) and (2) with MD5. Signature in '512a5.sig'. - - 4. Seals 'file' in envelope with first built-in public key and - DES-CBC data encryption algorithm, writing encrypted file to - '512a1.env', encrypted data encryption key to '512a1.key', - and initialization vector to '512a1.iv'. - - 5. Opens envelope and displays result. - - 6. Repeats (4) and (5) with DESX-CBC, DES-EDE2-CBC, and - DES-EDE3-CBC. Files: '512ax.*', '512a2.*', '512a3.*'. - - 7. Repeats (3-5) on 'bigfile'. Result should be "Envelope - opened \ This is a big file", repeated a few times. - -'512b.in' - - Same as '508.in', except that '508' becomes '512b', and second - built-in key pair is used, rather than generating a new one. - -'767.in' and '1024.in' - - Same as '508.in', except that '508' becomes '767' or '1024'; - new key pairs are generated in both cases. + RDEMO Test Scripts + + RSA Laboratories + March 2, 1992 + + +RDEMO comes with several test scripts that test RSAREF cryptographic +operations of various key sizes. + +The test scripts are: '508test.in', '512test.in', '767test.in', +'1024test.in', and 'md2test.in'. The scripts consists of RDEMO +commands. To exercise a script, redirect RDEMO's input to the script. +For example, on a UNIX system you would run the command + + rdemo < 508test.in + +to exercise the test script '508test.in'. + +The scripts work with a number of input files. Each script also +produces output files that you can compare against reference files +supplied with RDEMO. + +See the file 'rdemo.txt' in the 'doc' subdirectory for more on the +demonstration program. + + +'508test.in' script + + 1. Generates a 508-bit RSA key pair. + + 2. Outputs key to '508key.out' - compare to '508key'. + + 3. Verifies signature '508sig' on 'signfile' with 508-bit + public key. + + 4. Opens envelope '508env' (signature '508env.sig', encrypted + key '508env.key', initialization vector '508env.iv') with + 508-bit private key, built-in user #1 private key. Outputs + result to '508env.out' - read to verify. + + +'512test.in' script + + 1. Verifies signature '512sig' on 'signfile' with built-in + user #1 public key. + + 2. Opens envelope '512env' (encrypted signature '512env.sig', + encrypted key '512env.key', initialization vector + '512env.iv') with built-in user #1 private key, built-in + user #2 public key. Outputs result to '512env.out' - read + to verify. + + +'767test.in' and '1024test.in' + + Same as '508test.in', except that '508' becomes '767' or '1024'. + + +'md2test.in' + + Verifies signature '512sig.md2' on 'signfile' with built-in user + #1 public key. Run RDEMO with the '-2' flag for this script.