Macros

Macros

#define ECJPAKE_STATUS_SUCCESS   (0)
 Successful status code. More...
 
#define ECJPAKE_STATUS_ERROR   (-1)
 Generic error status code. More...
 
#define ECJPAKE_STATUS_UNDEFINEDCMD   (-2)
 An error status code returned by ECJPAKE_control() for undefined command codes. More...
 
#define ECJPAKE_STATUS_RESOURCE_UNAVAILABLE   (-3)
 An error status code returned if the hardware or software resource is currently unavailable. More...
 
#define ECJPAKE_STATUS_INVALID_PUBLIC_KEY   (-4)
 The public key of the other party is not valid. More...
 

Detailed Description

ECJPAKE_STATUS_* macros are general status codes returned by ECJPAKE functions

Macro Definition Documentation

§ ECJPAKE_STATUS_SUCCESS

#define ECJPAKE_STATUS_SUCCESS   (0)

Successful status code.

Function return ECJPAKE_STATUS_SUCCESS if the control code was executed successfully.

§ ECJPAKE_STATUS_ERROR

#define ECJPAKE_STATUS_ERROR   (-1)

Generic error status code.

Functions return ECJPAKE_STATUS_ERROR if the control code was not executed successfully.

§ ECJPAKE_STATUS_UNDEFINEDCMD

#define ECJPAKE_STATUS_UNDEFINEDCMD   (-2)

An error status code returned by ECJPAKE_control() for undefined command codes.

ECJPAKE_control() returns ECJPAKE_STATUS_UNDEFINEDCMD if the control code is not recognized by the driver implementation.

§ ECJPAKE_STATUS_RESOURCE_UNAVAILABLE

#define ECJPAKE_STATUS_RESOURCE_UNAVAILABLE   (-3)

An error status code returned if the hardware or software resource is currently unavailable.

ECJPAKE driver implementations may have hardware or software limitations on how many clients can simultaneously perform operations. This status code is returned if the mutual exclusion mechanism signals that an operation cannot currently be performed.

§ ECJPAKE_STATUS_INVALID_PUBLIC_KEY

#define ECJPAKE_STATUS_INVALID_PUBLIC_KEY   (-4)

The public key of the other party is not valid.

The public key received from the other party does not lie upon the agreed upon curve or is otherwise not valid.

Copyright 2017, Texas Instruments Incorporated