11.12.3.4.79. Function Se05x_API_DigestFinal¶
Defined in File se05x_APDU_apis.h
11.12.3.4.79.1. Function Documentation¶
-
smStatus_t
Se05x_API_DigestFinal
(pSe05xSession_t session_ctx, SE05x_CryptoObjectID_t cryptoObjectID, const uint8_t *inputData, size_t inputDataLen, uint8_t *cmacValue, size_t *pcmacValueLen)¶ Se05x_API_DigestFinal
Command to Applet
Field
Value
Description
CLA
0x80
INS
INS_CRYPTO
See
SE05x_INS_t
P1
P1_DEFAULT
See
SE05x_P1_t
P2
P2_FINAL
See
SE05x_P2_t
Lc
#(Payload)
TLV[TAG_2]
2-byte Crypto Object identifier
TLV[TAG_3]
Data to be encrypted or decrypted.
Le
0x00
Expecting TLV with hash value.
R-APDU Body
Value
Description
TLV[TAG_1]
CMAC value
R-APDU Trailer
SW
Description
SW_NO_ERROR
The hash is created successfully.
- Parameters
[in] session_ctx
: Session Context [0:kSE05x_pSession][in] cryptoObjectID
: cryptoObjectID [1:kSE05x_TAG_2][in] inputData
: inputData [2:kSE05x_TAG_3][in] inputDataLen
: Length of inputData[out] cmacValue
: [0:kSE05x_TAG_1][inout] pcmacValueLen
: Length for cmacValue