Command-Line Demo User’s Guide

BDEMODSA

BDEMODSA demonstrates the use of DSA to digitally sign and verify the integrity of data files.

Running BDEMODSA

Command Line mode

To start BDEMODSA, enter the following after the system prompt:

> bdemodsa

Input Redirection mode

You may also run BDEMODSA in input redirection mode where your responses to the menu prompts are read from a file. For example, to read commands from a file named testsgn, enter the following after the system prompt:

> bdemodsa -s < testsgn

Notice that this uses ’<’ to redirect testsgn as the input to BDEMODSA. BDEMODSA’s -soption is used to omit the menu prompts when input is taken from a file.

Any line that is blank or begins with ’#’ is ignored. This means that the file used in response file mode may contain blank lines and comment lines that begin with ’#’.

Using BDEMODSA

When you use BDEMODSA in command-line mode, you will be prompted to generate a DSA key pair for your BDEMODSA session. To do this:

1.Start BDEMODSA by typing bdemodsa at the system prompt

The request “Enter seed to generate DSA keypair (blank to cancel):” is displayed.

2.Enter any arbitrary string of printable characters.

The message “Generating DSA Keypair, please wait...” is displayed. Depending on the computer and level of code optimization, key generation will take from several seconds to several minutes.

When the key pair has been generated, the message “DSA public key and private key are now ready to use” is displayed.

3 3 2

R S A B S A F E C r y p t o - C D e v e l o p e r ’s G u i d e

Page 354
Image 354
RSA Security 5.2.2 manual Running Bdemodsa, Using Bdemodsa, Enter any arbitrary string of printable characters