Searched refs:KEY_SIZE (Results 1 - 4 of 4) sorted by relevance
/frameworks/base/drm/libdrmframework/plugins/forward-lock/internal-format/common/ |
H A D | FwdLockGlue.c | 32 #define KEY_SIZE 16 macro 33 #define KEY_SIZE_IN_BITS (KEY_SIZE * 8) 78 unsigned char keyEncryptionKey[KEY_SIZE]; 81 if (read(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) { 86 FwdLockGlue_GetRandomNumber(keyEncryptionKey, KEY_SIZE) && 90 if (write(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) { 102 memset(keyEncryptionKey, 0, KEY_SIZE); // Zero out key data.
|
/frameworks/base/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
H A D | FwdLockFile.c | 40 #define KEY_SIZE AES_BLOCK_SIZE macro 41 #define KEY_SIZE_IN_BITS (KEY_SIZE * 8) 173 unsigned char value[KEY_SIZE]; 174 unsigned char key[KEY_SIZE]; 180 pSession->encryptedSessionKeyLength, pData->key, KEY_SIZE); 186 memset(pData->value, 0, KEY_SIZE); 196 HMAC_Init_ex(&pSession->signingContext, pData->key, KEY_SIZE, EVP_sha1(), NULL); 267 pSession->encryptedSessionKeyLength = FwdLockGlue_GetEncryptedKeyLength(KEY_SIZE); 404 HMAC_Init_ex(&pSession->signingContext, NULL, KEY_SIZE, NULL, NULL); 432 HMAC_Init_ex(&pSession->signingContext, NULL, KEY_SIZE, NUL [all...] |
/frameworks/base/drm/libdrmframework/plugins/forward-lock/internal-format/converter/ |
H A D | FwdLockConv.c | 46 #define KEY_SIZE AES_BLOCK_SIZE macro 47 #define KEY_SIZE_IN_BITS (KEY_SIZE * 8) 143 unsigned char sessionKey[KEY_SIZE]; 246 unsigned char value[KEY_SIZE]; 247 unsigned char key[KEY_SIZE]; 257 memset(pData->value, 0, KEY_SIZE); 267 HMAC_Init_ex(&pSession->signingContext, pData->key, KEY_SIZE, EVP_sha1(), NULL); 1118 pSession->encryptedSessionKeyLength = FwdLockGlue_GetEncryptedKeyLength(KEY_SIZE); 1128 if (!FwdLockGlue_GetRandomNumber(pSession->sessionKey, KEY_SIZE)) { 1130 } else if (!FwdLockGlue_EncryptKey(pSession->sessionKey, KEY_SIZE, [all...] |
/frameworks/base/cmds/keystore/ |
H A D | keystore.cpp | 49 #define KEY_SIZE ((NAME_MAX - 15) / 2) macro 693 {get, 'g', STATE_NO_ERROR, GET, {KEY_SIZE, 0}}, 694 {insert, 'i', STATE_NO_ERROR, INSERT, {KEY_SIZE, VALUE_SIZE}}, 695 {del, 'd', STATE_ANY, DELETE, {KEY_SIZE, 0}}, 696 {exist, 'e', STATE_ANY, EXIST, {KEY_SIZE, 0}}, 697 {saw, 's', STATE_ANY, SAW, {KEY_SIZE, 0}},
|
Completed in 2123 milliseconds