Obtain value from an elliptic curve point object.
#include "hueccalc.h"
int hu_ECCalcECPointGet(sb_Params eccParams, sb_ECCalcECPoint point, size_t *pointLen, unsigned char *pointValue, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
ECC parameters object.
The elliptic curve point object.
The length (in bytes) of the elliptic curve point buffer.
The elliptic curve point buffer.
SB context or memory callback data.
If the output buffer is sufficiently large, the point value will be set in the output buffer, and the length is set in the length parameter. The elliptic curve point value is represented in the octet string format.
If the output buffer is not sufficient, an error is returned, and the necessary (correct) size is set in the length parameter.
In order to retrieve the necessary size of the output buffer, set pointValue to NULL. The length is set in the pointLen parameter.
ECC parameters object is NULL.
ECC parameters object is invalid.
The elliptic curve point objects is NULL.
The elliptic curve point object is invalid.
The length pointer of the value buffer is NULL.
The elliptic curve point buffer length is invalid.
Success.