AESResult

Syntax

#include <twl/aes.h>

typedef enum AESResult
{
    AES_RESULT_NONE,
    AES_RESULT_SUCCESS,
    AES_RESULT_VERIFICATION_FAILED,
    AES_RESULT_INVALID,
    AES_RESULT_BUSY,
    AES_RESULT_ON_DS,
    AES_RESULT_UNKNOWN,
    AES_RESULT_MAX
}
AESResult;

Elements

AES_RESULT_NONE Used internally in the library. This value will never be passed to the application.
AES_RESULT_SUCCESS The operation ran normally.
AES_RESULT_VERIFICATION_FAILED MAC verification failed during decryption in CCM mode.
AES_RESULT_INVALID An argument is invalid.
AES_RESULT_BUSY Another AES process is currently running. Only one AES process can be run at a given time.
AES_RESULT_ON_DS The AES library cannot be used because the application is running on a Nintendo DS.
AES_RESULT_UNKNOWN A state was detected within the library that should not have occurred.

Description

Enumerated type that indicates the result of an AES operation.

Revision History

2007/12/25 Initial version.


CONFIDENTIAL