CRM_OK Macro

C

#define CRM_OK 0

Description

The function or operation succeeded

CRM_ERR_INVALID_PARAM Macro

C

#define CRM_ERR_INVALID_PARAM 1

Description

The function or parameter was given an invalid parameter

CRM_ERR_UNKNOWN_ERROR Macro

C

#define CRM_ERR_UNKNOWN_ERROR 2

Description

Unknown error

CRM_ERR_BUSY Macro

C

#define CRM_ERR_BUSY 3

Description

The operation is still executing

CRM_ERR_NOT_QUADRATIC_RESIDUE Macro

C

#define CRM_ERR_NOT_QUADRATIC_RESIDUE 4

Description

The input operand is not a quadratic residue

CRM_ERR_COMPOSITE_VALUE Macro

C

#define CRM_ERR_COMPOSITE_VALUE 5

Description

The input value for Rabin-Miller test is a composite value

CRM_ERR_NOT_INVERTIBLE Macro

C

#define CRM_ERR_NOT_INVERTIBLE 6

Description

Inversion of a non-invertible value

CRM_ERR_INVALID_SIGNATURE Macro

C

#define CRM_ERR_INVALID_SIGNATURE 7

Description

The signature is not valid

CRM_ERR_NOT_IMPLEMENTED Macro

C

#define CRM_ERR_NOT_IMPLEMENTED 8

Description

Functionality not supported

CRM_ERR_POINT_AT_INFINITY Macro

C

#define CRM_ERR_POINT_AT_INFINITY 9

Description

The operand is point at infinity

CRM_ERR_INVALID_MODULUS Macro

C

#define CRM_ERR_INVALID_MODULUS 11

Description

The modulus has unexpected value

CRM_ERR_POINT_NOT_ON_CURVE Macro

C

#define CRM_ERR_POINT_NOT_ON_CURVE 12

Description

The input point is not on the defined elliptic curve

CRM_ERR_OUT_OF_RANGE Macro

C

#define CRM_ERR_OUT_OF_RANGE 10

Description

The input value is outside the expected range

CRM_ERR_OPERAND_TOO_LARGE Macro

C

#define CRM_ERR_OPERAND_TOO_LARGE 13

Description

The input operand is too large

CRM_ERR_PLATFORM_ERROR Macro

C

#define CRM_ERR_PLATFORM_ERROR 14

Description

A platform specific error

CRM_ERR_EXPIRED Macro

C

#define CRM_ERR_EXPIRED 15

Description

The evaluation period for the product expired

CRM_ERR_IK_MODE Macro

C

#define CRM_ERR_IK_MODE 16

Description

The hardware is still in IK mode

CRM_ERR_INVALID_CURVE_PARAM Macro

C

#define CRM_ERR_INVALID_CURVE_PARAM 17

Description

The parameters of the elliptic curve are not valid

CRM_DESCRIBE_STATUSCODE

C

typedef const char *(*FUNC_CRM_DESCRIBE_STATUSCODE)(int code);
#define CRM_DESCRIBE_STATUSCODE         ((FUNC_CRM_DESCRIBE_STATUSCODE)(*(uint32_t *)(API_TABLE_BASE_ADDRESS + ATO_CRM_DESCRIBE_STATUSCODE)))

Description

Return a brief text string describing the given status code.

Parameters

ParamDescription
codeValue of status code

Returns

Text string describing status code