11.12.3.4.95. Function Se05x_API_GetTimestamp¶
Defined in File se05x_APDU_apis.h
11.12.3.4.95.1. Function Documentation¶
-
smStatus_t
Se05x_API_GetTimestamp
(pSe05xSession_t session_ctx, SE05x_TimeStamp_t *ptimeStamp)¶ Se05x_API_GetTimestamp
Gets a monotonic counter value (time stamp) from the operating system of the device (both persistent and transient part). See TimestampFunctionality for details on the timestamps.
Command to Applet
Field
Value
Description
CLA
0x80
INS
INS_MGMT
See
SE05x_INS_t
P1
P1_DEFAULT
See
SE05x_P1_t
P2
P2_TIME
See
SE05x_P2_t
Lc
#(Payload)
Le
0x2C
Expecting TLV with timestamp.
R-APDU Body
Value
Description
TLV[TAG_1]
TLV containing a 12-byte operating system timestamp.
R-APDU Trailer
SW
Description
SW_NO_ERROR
Data is returned successfully.
- Return
The sm status.
- Parameters
[in] session_ctx
: The session contextptimeStamp
: The ptime stamp