Create a point order integer object and set integer value if supplied.
#include "hueccalc.h"
int hu_ECCalcOrderIntSet(sb_Params eccParams, size_t orderIntLen, const unsigned char *orderIntValue, sb_ECCalcOrderInt *orderInt, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
ECC parameters object.
The length (in bytes) of the integer value.
The point order integer value.
The point order integer object.
SB context or memory callback data.
If the value is not supplied, it generates an empty object.
A point order object contains an element of the point order finite field.
When supplied, the point order integer value (a finite field element) must be represented as an octet string. Even if the supplied value has correct byte length, it can be rejected by returning an error if the value is larger than or equal to point order.
An empty point order integer object represents an integer with the value of 0. In order to generate an empty elliptic curve point object, set NULL to orderIntValue.
The appropriate length can be inquired by using hu_ECCalcOrderIntGet() function.
ECC parameters object is NULL.
ECC parameters object is invalid.
Point order object pointer is NULL.
The value length is invalid.
The value is larger than or equal to point order.
Memory allocation failure.
Operation failed.
Success.