AI_DSAParamGen

AI_DSAParamGen

Purpose:

This AI allows you to generate DSA system parameters. The sizes of the parameters are passed to B_SetAlgorithmInfo and the parameters are made by calling B_GenerateInit and B_GenerateParameters. You use DSA parameters generated by this AI to generate a DSA key pair. Also see AI_DSAKeyGen.

Type of information this allows you to use:

the number of prime bits for generating a prime, a subprime, and a base (p, q, and g) compatible with FIPS PUB 186.

Format of info supplied to B_SetAlgorithmInfo:

pointer to a B_DSA_PARAM_GEN_PARAMS structure:

typedef struct

{

 

unsigned int

primeBits;

/* size of prime in bits */

}B_DSA_PARAM_GEN_PARAMS;

Format of info returned by B_GetAlgorithmInfo:

pointer to a B_DSA_PARAM_GEN_PARAMS structure (see above).

Crypto-C procedures to use with algorithm object:

B_GenerateInit and B_GenerateParameters. B_GenerateParameters sets the resultAlgorithmObject algorithm object with the AI_DSAKeyGen information. You must pass an initialized random algorithm to B_GenerateParameters.

Algorithm methods to include in application’s algorithm chooser:

AM_DSA_PARAM_GEN.

Notes:

The size of the subprime is always 160 bits.

5 4

R S A B S A F E C r y p t o - C L i b r a r y R e f e r e n c e M a n u a l

Page 64
Image 64
RSA Security 5 manual AIDSAParamGen, Pointer to a Bdsaparamgenparams structure, Size of the subprime is always 160 bits