AI_EC_DHKeyAgree
64 RSA BSAFE Crypto-C Library Reference Manual
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:
where
parameterInfoType
must be AI_ECParameters and
parameterInfoValue
must be
typedef struct {
B_INFO_TYPE *parameterInfoType; /* used to interpret EC parameters */
POINTER parameterInfoValue; /* describes elliptic curve */
} B_EC_PARAMS;