RSA Security 5 Projection Television User Manual


 
Chapter 2 Algorithm Info Types 79
AI_ECParamGen
AI_ECParamGen
Purpose:
This AI allows you to generate EC parameters to be used for elliptic curve operations.
Type of information this allows you to use:
the input parameters for generating an elliptic curve system as defined in X9.62 and
IEEE P1363 Draft.
Format of info supplied to B_SetAlgorithmInfo:
pointer to a B_EC_PARAM_GEN_PARAMS structure:
Set the arguments as follows:
typedef struct {
unsigned int version; /* implementation version */
unsigned int fieldType; /* base field for the elliptic curve */
unsigned int fieldElementBits; /* length of field element in bits */
unsigned int compressIndicator; /* ignored for now */
unsigned int minOrderBits; /* minimum size of group generated by base */
/* input of 0 defaults to fieldElementBits - 7 */
unsigned int trialDivBound; /* maximum size of second largest prime */
/* subgroup of group generated by base */
/* input of 0 defaults to 255 */
unsigned int tableLookup; /* characteristic 2 only. Set if the */
/* use of precomputed params is desired */
} B_EC_PARAM_GEN_PARAMS;
Argument Values Comments
version
0
Only value currently available; allows
growth for future versions
fieldType
FT_FP
odd prime field
FT_F2_ONB
even characteristic, optimal normal
basis
FT_F2_POLYNOMIAL
even characteristic, polynomial basis
compressIndicator
CI_NO_COMPRESS
do not compress the base or public key