Home
last modified time | relevance | path

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

/aosp12/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
H A 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()
/aosp12/system/keymaster/key_blob_utils/
H A Dauth_encrypted_key_blob.cpp102 Buffer keyEncryptionKey(kAes256KeyLength); in DeriveAesGcmKeyEncryptionKey() local
103 if (!HKDF_expand(keyEncryptionKey.peek_write(), keyEncryptionKey.available_write(), // in DeriveAesGcmKeyEncryptionKey()
111 return keyEncryptionKey; in DeriveAesGcmKeyEncryptionKey()