class Status(Enum):
    E_OK = 0

    E_CRYPTO_INIT_FAIL = 0x1000
    E_CRYPTO_DEINIT_FAIL = 0x1001
    E_CRYPTO_MODE_INVALID = 0x1002
    E_CRYPTO_KEY_INVALID = 0x1003
    E_CRYPTO_DATA_UNALIGNED = 0x1004
    E_CRYPTO_SEEK_LEN_ERROR = 0x1005

    E_AUTH_IMAGE_VERIFY_FAIL = 0x2000
    E_DA_IMAGE_SIG_VERIFY_FAIL = 0x2001
    E_DA_IMAGE_NO_MEM_FAIL = 0x2002
    E_DA_INIT_KEY_FAIL = 0x2003
    E_IMG_INIT_KEY_FAIL = 0x2004
    E_HASH_IMAGE_FAIL = 0x2005
    E_DA_RELOCATE_SIZE_NOT_ENOUGH = 0x2006

    E_LIB_SEC_CFG_NOT_EXIST = 0x3000
    E_LIB_VER_INVALID = 0x3001
    E_LIB_SEC_CFG_ERASE_FAIL = 0x3002
    E_LIB_SEC_CFG_CANNOT_WRITE = 0x3003
    E_LIB_SEC_CFG_END_PATTERN_NOT_EXIST = 0x3004
    E_LIB_SEC_CFG_STATUS_INVALID = 0x3005
    E_LIB_SEC_CFG_READ_SIZE_NOT_ENOUGH = 0x3006
    E_LIB_SEC_CFG_RSA_KEY_INIT_FAIL = 0x3007

    E_IMG_VERIFY_THIS_IMG_INFO_NOT_EXIST = 0x4000
    E_IMG_VERIFY_HASH_COMPARE_FAIL = 0x4001
    E_IMG_VERIFY_NO_SPACE_ADD_IMG_INFO = 0x4002
    E_SEC_DL_TOKEN_NOT_FOUND_IN_IMG = 0x4003
    E_SEC_DL_FLOW_ERROR = 0x4004
    E_IMG_VERIFY_INVALID_IMG_INFO_ATTR = 0x4005
    E_IMG_SECROIMG_NOT_FOUND = 0x4006
    E_IMG_READ_FAIL = 0x4007
    E_IMG_VERIFY_SIGNATURE_FAIL = 0x4008
    E_IMG_SIGN_FORMAT_NOT_MATCH = 0x4009
    E_IMG_EXTENSION_HDR_NOT_FOUND = 0x400A
    E_IMG_EXTENSION_MAGIC_WRONG = 0x400B
    E_IMG_EXTENSION_TYPE_NOT_SUPPORT = 0x400C
    E_IMG_EXTENSION_HASH_CAL_FAIL = 0x400D

    E_IMG_LOCK_TABLE_NOT_EXIST = 0x5000
    E_IMG_LOCK_ALL_LOCK = 0x5001
    E_IMG_LOCK_NO_SPACE_ADD_LOCK_INFO = 0x5002
    E_IMG_LOCK_THIS_IMG_INFO_NOT_EXIST = 0x5003
    E_IMG_LOCK_MAGIC_ERROR = 0x5004

    E_SBC_KEY_NOT_FOUND = 0x6000
    E_BR_SEC_CFG_NOT_FOUND = 0x6001

    E_REGION_INVALID_INCLUDE = 0x7000
    E_REGION_INVALID_OVERLAP = 0x7001
    E_REGION_INVALID_OVERFLOW = 0x7002
    E_DA_INVALID_LOCATION = 0x7003
    E_DA_INVALID_LENGTH = 0x7004