Searched refs:AES_BLOCK_SIZE (Results 1 - 4 of 4) sorted by relevance

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
H A DFwdLockGlue.c115 size_t padding = AES_BLOCK_SIZE - (decryptedKeyLength % AES_BLOCK_SIZE);
145 return ((plaintextKeyLength / AES_BLOCK_SIZE) + 2) * AES_BLOCK_SIZE;
155 unsigned char initVector[AES_BLOCK_SIZE];
156 if (FwdLockGlue_GetRandomNumber(initVector, AES_BLOCK_SIZE)) {
157 size_t padding = AES_BLOCK_SIZE - (plaintextKeyLength % AES_BLOCK_SIZE);
158 size_t dataLength = encryptedKeyLength - AES_BLOCK_SIZE;
161 memcpy((unsigned char *)pEncryptedKey + dataLength, initVector, AES_BLOCK_SIZE);
182 memcpy(initVector, (const unsigned char *)pEncryptedKey + dataLength, AES_BLOCK_SIZE); local
[all...]
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DClearKeyTypes.h27 const uint8_t kBlockSize = AES_BLOCK_SIZE;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.c41 #define KEY_SIZE AES_BLOCK_SIZE
71 unsigned char keyStream[AES_BLOCK_SIZE];
232 for (; i < AES_BLOCK_SIZE; ++i) {
246 uint64_t blockIndex = pSession->filePos / AES_BLOCK_SIZE;
247 uint64_t blockOffset = pSession->filePos % AES_BLOCK_SIZE;
250 unsigned char counter[AES_BLOCK_SIZE];
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DFwdLockConv.c47 #define KEY_SIZE AES_BLOCK_SIZE
150 unsigned char counter[AES_BLOCK_SIZE];
151 unsigned char keyStream[AES_BLOCK_SIZE];
820 while ((++pSession->counter[i] == 0) && (++i < AES_BLOCK_SIZE))
845 if (++pSession->keyStreamIndex == AES_BLOCK_SIZE) {
1122 if (pSession->encryptedSessionKeyLength < AES_BLOCK_SIZE) {
1142 memcpy(pSession->counter, pSession->pEncryptedSessionKey, AES_BLOCK_SIZE);

Completed in 405 milliseconds