Command-Line Demo User’s Guide

BDEMOEC

BDEMOEC provides the same functionality as BDEMO, but uses elliptic curve for its algorithms. The algorithm used for sealing and opening digital envelopes is ECAES to encrypt the DES symmetric key. Digital signatures are created and verified using ECDSA with SHA1.

A set of elliptic curve parameters are hard-coded in the demo along with two key pairs generated with that curve. A new key pair can be generated, but since the size of the key pair is dependent on the elliptic curve parameters used, the user cannot specify the desired key size.

Running BDEMOEC

Command Line mode

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

>bdemoec

Input Redirection mode

You may also run BDEMOEC 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 testin, enter the following after the system prompt:

>bdemoec -s < testec

Notice that this uses < to redirect testin as the input to BDEMOEC. The -soption to BDEMOEC eliminates the menu prompts when BDEMOEC is taking input 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 BDEMOEC

The menu options and procedures for BDEMOEC are identical for those for BDEMO. See “Using BDEMO” on page 329 for a description of the menu commands.

3 3 4

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 356
Image 356
RSA Security 5.2.2 manual Running Bdemoec, Using Bdemoec