Home
last modified time | relevance | path

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

/aosp12/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
H A DFwdLockGlue.c155 unsigned char initVector[AES_BLOCK_SIZE]; in FwdLockGlue_EncryptKey() local
156 if (FwdLockGlue_GetRandomNumber(initVector, AES_BLOCK_SIZE)) { in FwdLockGlue_EncryptKey()
161 memcpy((unsigned char *)pEncryptedKey + dataLength, initVector, AES_BLOCK_SIZE); in FwdLockGlue_EncryptKey()
163 initVector, AES_ENCRYPT); in FwdLockGlue_EncryptKey()
180 unsigned char initVector[AES_BLOCK_SIZE]; in FwdLockGlue_DecryptKey() local
182 memcpy(initVector, (const unsigned char *)pEncryptedKey + dataLength, AES_BLOCK_SIZE); in FwdLockGlue_DecryptKey()
183 AES_cbc_encrypt(pData, pData, dataLength, &decryptionRoundKeys, initVector, in FwdLockGlue_DecryptKey()
/aosp12/system/security/keystore/
H A Dkeystore_cli_v2.cpp377 std::vector<uint8_t> initVector; in encryptWithAuthentication() local
381 initVector = std::move(iv->get()); in encryptWithAuthentication()
385 if (initVector.empty()) { in encryptWithAuthentication()
397 auto toBeSigned = initVector; in encryptWithAuthentication()
430 protobuf.set_init_vector(initVector.data(), initVector.size()); in encryptWithAuthentication()