Home
last modified time | relevance | path

Searched refs:TOP_HEADER_SIZE (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.c51 #define TOP_HEADER_SIZE 8 macro
60 unsigned char topHeader[TOP_HEADER_SIZE];
263 if (read(fileDesc, pSession->topHeader, TOP_HEADER_SIZE) == TOP_HEADER_SIZE && in FwdLockFile_attach()
288 pSession->encryptedSessionKeyLength + TOP_HEADER_SIZE + 2 * SHA1_HASH_SIZE; in FwdLockFile_attach()
419 HMAC_Update(&pSession->signingContext, pSession->topHeader, TOP_HEADER_SIZE); in FwdLockFile_CheckHeaderIntegrity()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.c56 #define TOP_HEADER_SIZE 8 macro
149 unsigned char topHeader[TOP_HEADER_SIZE];
560 size_t encryptedSessionKeyPos = TOP_HEADER_SIZE + pSession->contentType.length; in FwdLockConv_WriteHeader()
567 memcpy(pOutput->fromConvertData.pBuffer, pSession->topHeader, TOP_HEADER_SIZE); in FwdLockConv_WriteHeader()
568 memcpy((char *)pOutput->fromConvertData.pBuffer + TOP_HEADER_SIZE, in FwdLockConv_WriteHeader()
1222 HMAC_Update(&pSession->signingContext, pSession->topHeader, TOP_HEADER_SIZE); in FwdLockConv_CloseSession()
1234 pOutput->fromCloseSession.fileOffset = TOP_HEADER_SIZE + in FwdLockConv_CloseSession()