Home
last modified time | relevance | path

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

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c150 void *pEncryptedKey, in FwdLockGlue_EncryptKey() argument
159 memcpy(pEncryptedKey, pPlaintextKey, plaintextKeyLength); in FwdLockGlue_EncryptKey()
160 memset((unsigned char *)pEncryptedKey + plaintextKeyLength, (int)padding, padding); in FwdLockGlue_EncryptKey()
161 memcpy((unsigned char *)pEncryptedKey + dataLength, initVector, AES_BLOCK_SIZE); in FwdLockGlue_EncryptKey()
162 AES_cbc_encrypt(pEncryptedKey, pEncryptedKey, dataLength, &encryptionRoundKeys, in FwdLockGlue_EncryptKey()
170 int FwdLockGlue_DecryptKey(const void *pEncryptedKey, in FwdLockGlue_DecryptKey() argument
181 memcpy(pData, pEncryptedKey, dataLength); in FwdLockGlue_DecryptKey()
182 memcpy(initVector, (const unsigned char *)pEncryptedKey + dataLength, AES_BLOCK_SIZE); in FwdLockGlue_DecryptKey()
DFwdLockGlue.h63 void *pEncryptedKey,
76 int FwdLockGlue_DecryptKey(const void *pEncryptedKey,