Command-Line Demo Users Guide
332 RSA BSAFE Crypto-C Developers 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.
BDEMODSAs -s option 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.