RSA Security 5 Projection Television User Manual


 
AI_DSAParamGen
54 RSA BSAFE Crypto-C Library Reference Manual
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:
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.
typedef struct {
unsigned int primeBits; /* size of prime in bits */
} B_DSA_PARAM_GEN_PARAMS;