11.12.3.4.103. Function Se05x_API_MACInit¶
Defined in File se05x_APDU_apis.h
11.12.3.4.103.1. Function Documentation¶
-
smStatus_t
Se05x_API_MACInit
(pSe05xSession_t session_ctx, uint32_t objectID, SE05x_CryptoObjectID_t cryptoObjectID, const SE05x_Mac_Oper_t mac_oper)¶ Se05x_API_MACInit
Initiate a MAC operation. The state of the MAC operation is kept in the Crypto Object until it’s finalized or deleted.
The 4-byte identifier of the key must refer to an AESKey, DESKey or HMACKey.
Command to Applet
Field
Value
Description
CLA
0x80
INS
INS_CRYPTO
P1
P1_MAC
See
SE05x_P1_t
P2
P2_GENERATE or P2_VALIDATE
See
SE05x_P2_t
Lc
#(Payload)
Payload
TLV[TAG_1]
4-byte identifier of the MAC key.
TLV[TAG_2]
2-byte Crypto Object identifier
Le
0x00
R-APDU Body
NA
R-APDU Trailer
SW
Description
SW_NO_ERROR
The command is handled successfully.
- Parameters
[in] session_ctx
: Session Context [0:kSE05x_pSession][in] objectID
: objectID [1:kSE05x_TAG_1][in] cryptoObjectID
: cryptoObjectID [2:kSE05x_TAG_2][in] mac_oper
: The Operation