11.12.3.4.138. Function Se05x_API_WriteUserID

11.12.3.4.138.1. Function Documentation

smStatus_t Se05x_API_WriteUserID(pSe05xSession_t session_ctx, pSe05xPolicy_t policy, SE05x_MaxAttemps_t maxAttempt, uint32_t objectID, const uint8_t *userId, size_t userIdLen, const SE05x_AttestationType_t attestation_type)

Se05x_API_WriteUserID

Creates a UserID object, setting the user identifier value. The policy defines the maximum number of attempts that can be performed as comparison.

Command to Applet

Field

Value

Description

P1

P1_USERID

See SE05x_P1_t

P2

P2_DEFAULT

See SE05x_P2_t

TLV[TAG_POLICY]

Byte array containing the object policy. [Optional: default policy applies] [Conditional: only when the object identifier is not in use yet]

TLV[TAG_MAX_ATTEMPTS]

2-byte maximum number of attempts. If 0 is given, this means unlimited. For pins, the maximum number of attempts must be smaller than 256. [Optional: default = 0] [Conditional: only when the object identifier is not in use yet and INS includes INS_AUTH_OBJECT; see -]

TLV[TAG_1]

4-byte object identifier.

TLV[TAG_2]

Byte array containing 4 to 16 bytes user identifier value.

Return

The sm status.

Parameters
  • [in] session_ctx: The session context

  • [in] policy: The policy

  • [in] maxAttempt: The maximum attempt

  • [in] objectID: The object id

  • [in] userId: The user identifier

  • [in] userIdLen: The user identifier length

  • [in] attestation_type: The attestation type