Home
last modified time | relevance | path

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

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.c243 static int FwdLockConv_DeriveKeys(FwdLockConv_Session_t *pSession) { in FwdLockConv_DeriveKeys() argument
255 if (AES_set_encrypt_key(pSession->sessionKey, KEY_SIZE_IN_BITS, in FwdLockConv_DeriveKeys()
263 &pSession->encryptionRoundKeys) != 0) { in FwdLockConv_DeriveKeys()
269 HMAC_CTX_init(&pSession->signingContext); in FwdLockConv_DeriveKeys()
270 HMAC_Init_ex(&pSession->signingContext, pData->key, KEY_SIZE, EVP_sha1(), NULL); in FwdLockConv_DeriveKeys()
314 static FwdLockConv_Status_t FwdLockConv_RightTrimDelimiter(FwdLockConv_Session_t *pSession) { in FwdLockConv_RightTrimDelimiter() argument
315 while (pSession->delimiterLength > 4 && in FwdLockConv_RightTrimDelimiter()
316 pSession->delimiter[pSession->delimiterLength - 1] == ' ') { in FwdLockConv_RightTrimDelimiter()
317 --pSession->delimiterLength; in FwdLockConv_RightTrimDelimiter()
319 if (pSession->delimiterLength > 4) { in FwdLockConv_RightTrimDelimiter()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.c171 static int FwdLockFile_DeriveKeys(FwdLockFile_Session_t * pSession) { in FwdLockFile_DeriveKeys() argument
184 result = FwdLockGlue_DecryptKey(pSession->pEncryptedSessionKey, in FwdLockFile_DeriveKeys()
185 pSession->encryptedSessionKeyLength, pData->key, KEY_SIZE); in FwdLockFile_DeriveKeys()
194 &pSession->encryptionRoundKeys) != 0) { in FwdLockFile_DeriveKeys()
200 HMAC_CTX_init(&pSession->signingContext); in FwdLockFile_DeriveKeys()
201 HMAC_Init_ex(&pSession->signingContext, pData->key, KEY_SIZE, EVP_sha1(), NULL); in FwdLockFile_DeriveKeys()
245 void FwdLockFile_DecryptByte(FwdLockFile_Session_t * pSession, unsigned char *pByte) { in FwdLockFile_DecryptByte() argument
246 uint64_t blockIndex = pSession->filePos / AES_BLOCK_SIZE; in FwdLockFile_DecryptByte()
247 uint64_t blockOffset = pSession->filePos % AES_BLOCK_SIZE; in FwdLockFile_DecryptByte()
248 if (blockIndex != pSession->blockIndex) { in FwdLockFile_DecryptByte()
[all …]