11.12.3.4.66. Function Se05x_API_DeleteAll

11.12.3.4.66.1. Function Documentation

smStatus_t Se05x_API_DeleteAll(pSe05xSession_t session_ctx)

Se05x_API_DeleteAll

Delete all Secure Objects, delete all curves and Crypto Objects. Secure Objects that are trust provisioned by NXP are not deleted (i.e., all objects that have Origin set to ORIGIN_PROVISIONED, including the objects with reserved object identifiers listed in Object attributes).

This command can only be used from sessions that are authenticated using the credential with index RESERVED_ID_FACTORY_RESET.

Important : if a secure messaging session is up & running (e.g., AESKey or ECKey session) and the command is sent within this session, the response of the DeleteAll command will not be wrapped (i.e., not encrypted and no R-MAC), so this will also break down the secure channel protocol (as the session is closed by the DeleteAll command itself).

Command to Applet

Field

Value

Description

CLA

0x80

INS

INS_MGMT

See SE05x_INS_t

P1

P1_DEFAULT

See SE05x_P1_t

P2

P2_DELETE_ALL

See SE05x_P2_t

Lc

0x00

R-APDU Body

NA

R-APDU Trailer

SW

Description

SW_NO_ERROR

Data is returned successfully.

Parameters
  • [in] session_ctx: Session Context [0:kSE05x_pSession]