Searched defs:pEncryptedKey (Results 1 - 1 of 1) sorted by relevance

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

Completed in 26 milliseconds