Home
last modified time | relevance | path

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

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c144 size_t FwdLockGlue_GetEncryptedKeyLength(size_t plaintextKeyLength) { in FwdLockGlue_GetEncryptedKeyLength() argument
145 return ((plaintextKeyLength / AES_BLOCK_SIZE) + 2) * AES_BLOCK_SIZE; in FwdLockGlue_GetEncryptedKeyLength()
149 size_t plaintextKeyLength, in FwdLockGlue_EncryptKey() argument
153 assert(encryptedKeyLength == FwdLockGlue_GetEncryptedKeyLength(plaintextKeyLength)); in FwdLockGlue_EncryptKey()
157 size_t padding = AES_BLOCK_SIZE - (plaintextKeyLength % AES_BLOCK_SIZE); in FwdLockGlue_EncryptKey()
159 memcpy(pEncryptedKey, pPlaintextKey, plaintextKeyLength); in FwdLockGlue_EncryptKey()
160 memset((unsigned char *)pEncryptedKey + plaintextKeyLength, (int)padding, padding); in FwdLockGlue_EncryptKey()
DFwdLockGlue.h49 size_t FwdLockGlue_GetEncryptedKeyLength(size_t plaintextKeyLength);
62 size_t plaintextKeyLength,