Macros

Macros

#define SHA2_STATUS_SUCCESS   (0)
 Successful status code. More...
 
#define SHA2_STATUS_ERROR   (-1)
 Generic error status code. More...
 
#define SHA2_STATUS_UNDEFINEDCMD   (-2)
 An error status code returned by SHA2_control() for undefined command codes. More...
 
#define SHA2_STATUS_RESOURCE_UNAVAILABLE   (-3)
 An error status code returned if the hardware or software resource is currently unavailable. More...
 

Detailed Description

SHA2_STATUS_* macros are general status codes returned by SHA2 functions

Macro Definition Documentation

§ SHA2_STATUS_SUCCESS

#define SHA2_STATUS_SUCCESS   (0)

Successful status code.

Functions return SHA2_STATUS_SUCCESS if the function was executed successfully.

§ SHA2_STATUS_ERROR

#define SHA2_STATUS_ERROR   (-1)

Generic error status code.

Functions return SHA2_STATUS_ERROR if the function was not executed successfully and no more specific error is applicable.

§ SHA2_STATUS_UNDEFINEDCMD

#define SHA2_STATUS_UNDEFINEDCMD   (-2)

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

SHA2_control() returns SHA2_STATUS_UNDEFINEDCMD if the control code is not recognized by the driver implementation.

§ SHA2_STATUS_RESOURCE_UNAVAILABLE

#define SHA2_STATUS_RESOURCE_UNAVAILABLE   (-3)

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

SHA2 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.

Copyright 2018, Texas Instruments Incorporated