Home
last modified time | relevance | path

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

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c78 unsigned char keyEncryptionKey[KEY_SIZE]; in FwdLockGlue_InitializeRoundKeys() local
81 if (read(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) { in FwdLockGlue_InitializeRoundKeys()
86 FwdLockGlue_GetRandomNumber(keyEncryptionKey, KEY_SIZE) && in FwdLockGlue_InitializeRoundKeys()
90 if (write(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) { in FwdLockGlue_InitializeRoundKeys()
97 if (AES_set_encrypt_key(keyEncryptionKey, KEY_SIZE_IN_BITS, &encryptionRoundKeys) != 0 || in FwdLockGlue_InitializeRoundKeys()
98 AES_set_decrypt_key(keyEncryptionKey, KEY_SIZE_IN_BITS, &decryptionRoundKeys) != 0) { in FwdLockGlue_InitializeRoundKeys()
102 memset(keyEncryptionKey, 0, KEY_SIZE); // Zero out key data. in FwdLockGlue_InitializeRoundKeys()