AI_ECParamGen
80 RSA BSAFE Crypto-C Library Reference Manual
Note: The parameter range given above for
minOrderBits
includes values that are not secure. If you pass 0 for
minOrderBits
, Crypto-C will choose the value for you. You should only pass a non-zero value if you are certain that you are fully aware of the underlying cryptographic issues.
Format of info returned by B_GetAlgorithmInfo:
pointer to a B_EC_PARAM_GEN_PARAMS structure (see above).
fieldElementBits 64 - 384 bits fieldType = FT_FP or
FT_F2_POLYNOMIAL
65, 66, 69, 74, 81, 82, 83, 86, 89, 90, 95,
98, 99, 100, 105, 106, 113, 119, 130,
131, 134, 135, 138, 146, 148, 155, 158,
162, 172, 173, 174, 178, 179, 180, 183,
186, 189, 191, 194, 196, 209, 210, 221,
226, 230, 231, 233, 239, 243, 245, 251,
254, 261, 268, 270, 273, 278, 281, 292,
293, 299, 303, 306, 309, 316, 323, 326,
329, 330, 338, 346, 348, 350, 354, 359,
371, 372, 375, 378
fieldType = FT_F2_ONB
minOrderBits 0 (recommended);
1tofieldElementBits
0 tells Crypto-C to choose the value.
Note that not all values in the range
1-fieldElementBits are secure.
Must be set to 0 if tableLookup = 1.
trialDivBound 0 (recommended); 1 - 384 0 tells Crypto-C to choose the value.
Must be set to 0 if tableLookup = 1.
tableLookup 0 or 1 set to 0 if fieldType = FT_FP
set to 0 if fieldType = FT_F2_ONB or
FT_F2_POLYNOMIAL, and you want
Crypto-C to generate new parameters
from scratch. minOrderBits and
trialDivBound may be non-zero.
set to 1 if fieldType = FT_F2_ONB or
FT_F2_POLYNOMIAL, and you want to
generate curves using table lookup.
Curve generation will be fast, but
minOrderBits and trialDivBound must be
set to 0.
Argument Values Comments