11.12.3.4.132. Function Se05x_API_WriteBinary¶
Defined in File se05x_APDU_apis.h
11.12.3.4.132.1. Function Documentation¶
-
smStatus_t
Se05x_API_WriteBinary
(pSe05xSession_t session_ctx, pSe05xPolicy_t policy, uint32_t objectID, uint16_t offset, uint16_t length, const uint8_t *inputData, size_t inputDataLen)¶ Se05x_API_WriteBinary
Creates or writes to a binary file object. Data are written to either the start of the file or (if specified) to the offset passed to the function.
Command to Applet
Field
Value
Description
P1
P1_BINARY
See
SE05x_P1_t
P2
P2_DEFAULT
See
SE05x_P2_t
Payload
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_1]
4-byte object identifier
TLV[TAG_2]
2-byte file offset [Optional: default = 0]
TLV[TAG_3]
2-byte file length (up to 0x7FFF). [Conditional: only when the object identifier is not in use yet]
TLV[TAG_4]
Data to be written [Optional: if not given, TAG_3 must be filled]
TLV[TAG_11]
4-byte version [Optional]
- Parameters
[in] session_ctx
: Session Context [0:kSE05x_pSession][in] policy
: policy [1:kSE05x_TAG_POLICY][in] objectID
: object id [2:kSE05x_TAG_1][in] offset
: offset [3:kSE05x_TAG_2][in] length
: length [4:kSE05x_TAG_3][in] inputData
: input data [5:kSE05x_TAG_4][in] inputDataLen
: Length of inputData