11.12.3.4.129. Function Se05x_API_TLSGenerateRandom

11.12.3.4.129.1. Function Documentation

smStatus_t Se05x_API_TLSGenerateRandom(pSe05xSession_t session_ctx, uint8_t *randomValue, size_t *prandomValueLen)

Se05x_API_TLSGenerateRandom

Generates a random that is stored in the SE05X and used by TLSPerformPRF.

Command to Applet

Field

Value

Description

CLA

0x80

INS

INS_CRYPTO

See SE05x_INS_t

P1

P1_TLS

See SE05x_P1_t

P2

P2_RANDOM

See SE05x_P2_t

Lc

#(Payload)

Le

0x22

Expecting TLV with 32 bytes data.

R-APDU Body

Value

Description

TLV[TAG_1]

32-byte random value

R-APDU Trailer

SW

Description

SW_NO_ERROR

The command is handled successfully.

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

  • [out] randomValue: [0:kSE05x_TAG_1]

  • [inout] prandomValueLen: Length for randomValue