11.12.3.4.65. Function Se05x_API_CreateSession

11.12.3.4.65.1. Function Documentation

smStatus_t Se05x_API_CreateSession(pSe05xSession_t session_ctx, uint32_t authObjectID, uint8_t *sessionId, size_t *psessionIdLen)

Se05x_API_CreateSession

Creates a session on SE05X .

Depending on the authentication object being referenced, a specific method of authentication applies. The response needs to adhere to this authentication method.

Command to Applet

Field

Value

Description

CLA

0x80

INS

INS_MGMT

See SE05x_INS_t

P1

P1_DEFAULT

See SE05x_P1_t

P2

P2_SESSION_CREATE

See SE05x_P2_t

Lc

#(Payload)

Payload length.

Payload

TLV[TAG_1]

4-byte authentication object identifier.

Le

0x0A

Expecting TLV with 8-byte session ID.

R-APDU Body

Value

Description

TLV[TAG_1]

8-byte session identifier.

R-APDU Trailer

SW_NO_ERROR:

  • The command is handled successfully.

SW_CONDITIONS_NOT_SATISFIED:

  • The authenticator does not exist

  • The provided input data are incorrect.

  • The session is invalid.

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

  • [in] authObjectID: auth [1:kSE05x_TAG_1]

  • [out] sessionId: [0:kSE05x_TAG_1]

  • [inout] psessionIdLen: Length for sessionId