|
| B_KeyAgreeInit |
|
| |
B_KeyAgreeInit |
| |
|
|
|
int B_KeyAgreeInit ( |
|
|
B_ALGORITHM_OBJ | algorithmObject, | /* algorithm object */ |
B_KEY_OBJ | keyObject, | /* key object */ |
B_ALGORITHM_CHOOSER algorithmChooser, | /* algorithm chooser */ | |
A_SURRENDER_CTX | *surrenderContext | /* surrender context */ |
); |
|
|
|
|
|
Description
B_KeyAgreeInit initializes algorithmObject for performing key agreement using the algorithm specified by a previous call to B_SetAlgorithmInfo. The chooser for selecting the algorithm method is algorithmChooser. The key object for supplying the key information is keyObject; it should be (B_KEY_OBJ)NULL_PTR for key agreement algorithms that do not need an input key. The surrender context for processing and canceling during lengthy operations is surrenderContext; if its value is
,
This routine can be used for
Return value
Value | Description |
0 | Operation was successful. |
see Appendix A, | |
|
|
C h a p t e r 4 D e t a i l s o f C r y p t o - C F u n c t i o n s | 325 |