AI_EC_DHKeyAgree

AI_EC_DHKeyAgree

Purpose:

This AI allows you to perform elliptic curve Diffie-Hellman key agreement for given EC parameters. You may have generated system parameters (for example, through AI_ECParamGen), or you may have retrieved them from another source. These system parameters are passed to B_SetAlgorithmInfo. The function B_KeyAgreePhase1 creates the public value that is sent to the other party, and B_KeyAgreePhase2 processes the value from the other party to produce the shared secret value.

Type of information this allows you to use:

elliptic curve system parameters used in the elliptic curve, Diffie-Hellman key agreement operation, as defined in X9.63 Draft.

Format of info supplied to B_SetAlgorithmInfo:

pointer to a B_EC_PARAMS structure:

typedef struct

{

 

B_INFO_TYPE *parameterInfoType;

/* used to interpret EC parameters */

POINTER

parameterInfoValue;

/* describes elliptic curve */

}B_EC_PARAMS;

where parameterInfoType must be AI_ECParameters and parameterInfoValue must be

6 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 74
Image 74
RSA Security 5 manual AIECDHKeyAgree