AI_ECParametersBER

AI_ECParametersBER

Purpose:

This AI allows you to specify EC parameters to be used for elliptic curve operations.

Type of information this allows you to use:

the encoding of an ANSI X9.62 Version 1 algorithm identifier that specifies an elliptic curve. An equivalent set of parameters to those produced by AI_ECParamGen is decoded and stored in the resulting algorithm object.

The resulting AI_ECParameters algorithm object may then be used with AI_ECKeyGen to generate keys or with AI_EC_DHKeyAgree to execute key agreements.

Format of info supplied to B_SetAlgorithmInfo:

pointer to an ITEM structure that contains the ANSI X9.62-compliant BER encoding of an elliptic curve’s parameters. In compliance with X9.62, you can specify the CHOICE of either a full EC CURVE definition or a NAMED CURVE definition. Both ANSI X9.62 uncompressed and hybrid base points are decoded.

Format of info returned by B_GetAlgorithmInfo:

pointer to a ITEM structure that contains the ANSI X9.62-compliant BER encoding of an elliptic curve’s parameters.

Crypto-C procedures to use with algorithm object:

B_SetAlgorithmInfo and B_GetAlgorithmInfo.

Algorithm methods to include in application’s algorithm chooser:

None.

Compatible representation:

AI_ECParameters.

Note: The X9.62 “NAMED CURVE” representation is not preserved when calling B_GetAlgorithmInfo in AI_ECParameters. NAMED CURVE representation

C h a p t e r 2 A l g o r i t h m I n f o Ty p e s

77

Page 87
Image 87
RSA Security 5 manual AIECParametersBER