Macros

Macros

#define AESCCM_STATUS_SUCCESS   (0)
 Successful status code. More...
 
#define AESCCM_STATUS_ERROR   (-1)
 Generic error status code. More...
 
#define AESCCM_STATUS_UNDEFINEDCMD   (-2)
 An error status code returned by AESCCM_control() for undefined command codes. More...
 
#define AESCCM_STATUS_RESOURCE_UNAVAILABLE   (-3)
 An error status code returned if the hardware or software resource is currently unavailable. More...
 
#define AESCCM_STATUS_MAC_INVALID   (-4)
 An error status code returned if the MAC provided by the application for a decryption operation does not match the one calculated during the operation. More...
 

Detailed Description

AESCCM_STATUS_* macros are general status codes returned by AESCCM functions

Macro Definition Documentation

§ AESCCM_STATUS_SUCCESS

#define AESCCM_STATUS_SUCCESS   (0)

Successful status code.

Functions return AESCCM_STATUS_SUCCESS if the function was executed successfully.

§ AESCCM_STATUS_ERROR

#define AESCCM_STATUS_ERROR   (-1)

Generic error status code.

Functions return AESCCM_STATUS_ERROR if the function was not executed successfully and no more pertinent error code could be returned.

§ AESCCM_STATUS_UNDEFINEDCMD

#define AESCCM_STATUS_UNDEFINEDCMD   (-2)

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

AESCCM_control() returns AESCCM_STATUS_UNDEFINEDCMD if the control code is not recognized by the driver implementation.

§ AESCCM_STATUS_RESOURCE_UNAVAILABLE

#define AESCCM_STATUS_RESOURCE_UNAVAILABLE   (-3)

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

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

§ AESCCM_STATUS_MAC_INVALID

#define AESCCM_STATUS_MAC_INVALID   (-4)

An error status code returned if the MAC provided by the application for a decryption operation does not match the one calculated during the operation.

This code is returned by AESCCM_oneStepDecrypt() if the verification of the MAC fails.

Copyright 2018, Texas Instruments Incorporated