
|
| B_KeyAgreePhase2 |
|
| |
B_KeyAgreePhase2 |
| |
|
| |
int B_KeyAgreePhase2 ( |
| |
B_ALGORITHM_OBJ algorithmObject, | /* algorithm object */ | |
unsigned char | *output, | /* output data buffer */ |
unsigned int | *outputLen, | /* length of output data */ |
unsigned int | maxOutputLen, | /* size of output data buffer */ |
unsigned char | *input, | /* input data */ |
unsigned int | inputLen, | /* length of input data */ |
A_SURRENDER_CTX *surrenderContext | /* surrender context */ | |
); |
|
|
|
|
|
Description
B_KeyAgreePhase2 performs a round of key agreement as specified by algorithmObject, receiving inputLen bytes from input, which is the other party’s intermediate value. B_KeyAgreePhase2 writes the output to output, which is a buffer supplied by the caller of at least maxOutputLen bytes, and sets outputLen to the number of bytes written to output. If input is the other party’s final intermediate value, output is the
B_KeyAgreePhase2 may be called one or more times to process intermediate values, depending on how many other parties are involved in the key agreement. For an algorithm like
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 | 327 |