Create an elliptic curve point object, and set an elliptic curve point value if supplied.
#include "hueccalc.h"
int hu_ECCalcECPointSet(sb_Params eccParams, size_t pointLen, const unsigned char *pointValue, sb_ECCalcECPoint *point, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
ECC parameters object.
The length (in bytes) of the elliptic curve point value.
The elliptic curve point value.
The elliptic curve point object.
SB context or memory callback data.
If the value is not supplied, then this function generates an empty object.
When supplied, the elliptic curve point value must be represented as an octet string. The supplied point must belong to the subgroup specified by the ECC domain parameter, including point at infinity.
An empty elliptic curve point object represents a two-tuple with both x- and y-coordinates are 0. It acts as a point at infinity.
To generate an empty elliptic curve point object, set pointValue to NULL.
The appropriate length can be determined by using the hu_ECCalcECPointGet() function.
ECC parameters object is NULL.
ECC parameters object is invalid.
The elliptic curve point object pointer is NULL.
The value length is invalid.
The value is invalid.
Memory allocation failure.
Operation failed.
Success.