hu_ECCalcIntMult()

Computes integer multiplication of an integer and an elliptic curve point.

Synopsis:

#include "hueccalc.h"
 
int hu_ECCalcIntMult(sb_Params eccParams, sb_ECCalcOrderInt multInt, sb_ECCalcECPoint point, sb_ECCalcECPoint resultPoint, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

eccParams

ECC parameters object.

multInt

The multiplying integer.

point

The point.

resultPoint

The result point.

sbCtx

A global context.

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

If the input point is NULL, the generating point is used.

resultPoint = multInt * point

Input and output elliptic curve point objects can be the same.

Returns:

SB_ERR_NULL_PARAMS

ECC parameters object is NULL.

SB_ERR_BAD_PARAMS

ECC parameters object is invalid.

SB_ERR_NULL_ORDER_INT

The point order integer object is NULL.

SB_ERR_BAD_ORDER_INT

The point order integer object is invalid.

SB_ERR_NULL_ECPOINT

The elliptic curve point object is NULL.

SB_ERR_BAD_ECPOINT

The elliptic curve point object is invalid.

SB_FAIL_ALLOC

Memory allocation failure.

SB_FAILURE

Operation failed.

SB_ERR_POINT_AT_INFINITY

Operation resulted in point at infinity (caller to interpret as error or not).

SB_SUCCESS

Success.