Home
last modified time | relevance | path

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

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.c44 #define SHA1_HASH_SIZE 20 macro
65 unsigned char dataSignature[SHA1_HASH_SIZE];
66 unsigned char headerSignature[SHA1_HASH_SIZE];
278 read(fileDesc, pSession->dataSignature, SHA1_HASH_SIZE) == in FwdLockFile_attach()
279 SHA1_HASH_SIZE && in FwdLockFile_attach()
280 read(fileDesc, pSession->headerSignature, SHA1_HASH_SIZE) == in FwdLockFile_attach()
281 SHA1_HASH_SIZE) { in FwdLockFile_attach()
288 pSession->encryptedSessionKeyLength + TOP_HEADER_SIZE + 2 * SHA1_HASH_SIZE; in FwdLockFile_attach()
376 unsigned char signature[SHA1_HASH_SIZE]; in FwdLockFile_CheckDataIntegrity()
388 unsigned int signatureSize = SHA1_HASH_SIZE; in FwdLockFile_CheckDataIntegrity()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.c50 #define SHA1_HASH_SIZE 20 macro
562 size_t headerSignaturePos = dataSignaturePos + SHA1_HASH_SIZE; in FwdLockConv_WriteHeader()
563 pSession->dataOffset = headerSignaturePos + SHA1_HASH_SIZE; in FwdLockConv_WriteHeader()
575 SHA1_HASH_SIZE); in FwdLockConv_WriteHeader()
577 SHA1_HASH_SIZE); in FwdLockConv_WriteHeader()
1213 unsigned int signatureSize = SHA1_HASH_SIZE; in FwdLockConv_CloseSession()
1216 if (signatureSize != SHA1_HASH_SIZE) { in FwdLockConv_CloseSession()
1228 SHA1_HASH_SIZE); in FwdLockConv_CloseSession()
1230 &pOutput->fromCloseSession.signatures[SHA1_HASH_SIZE], &signatureSize); in FwdLockConv_CloseSession()
1231 if (signatureSize != SHA1_HASH_SIZE) { in FwdLockConv_CloseSession()