AI_DHKeyAgree
AI_DHKeyAgree
Purpose:
This AI allows you to perform
party to produce the shared secret value. Seefor the same algorithm type with BER encoding.
Type of information this allows you to use:
Format of info supplied to B_SetAlgorithmInfo:
pointer to an A_DH_KEY_AGREE_PARAMS structure:
typedef struct | { |
|
|
ITEM | prime; | /* prime modulus | */ |
ITEM | base; | /* base generator | */ |
unsigned int | exponentBits; | /* size of random exponent in bits */ |
}A_DH_KEY_AGREE_PARAMS;
Each ITEM supplies an integer in canonical format, where the ITEM’s data points to an unsigned byte array
Format of info returned by B_GetAlgorithmInfo:
pointer to an A_DH_KEY_AGREE_PARAMS structure (see above). All leading zeros have been stripped from each integer in the structure.
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 | 45 |