Fix session id in dynamic adapter for OEMCrypto_LoadLicense()

Missing "pair." for a few spots.

Test: oemcrypto unit tests
Bug: 299333403
Change-Id: I99ecb7fc42f88b431d293b3edeb5903b8f24e1e7
This commit is contained in:
Cong Lin
2024-01-23 11:19:11 -08:00
committed by Robert Shih
parent 4626fa18ce
commit cd104160bd

View File

@@ -2215,10 +2215,10 @@ extern "C" OEMCryptoResult OEMCrypto_LoadLicense(
const std::vector<uint8_t> enc_context =
MakeContext("ENCRYPTION", context, context_length, 0x80);
const OEMCryptoResult result = pair.fcn->DeriveKeysFromSessionKey_V18(
session, derivation_key, derivation_key_length, mac_context.data(),
pair.session, derivation_key, derivation_key_length, mac_context.data(),
mac_context.size(), enc_context.data(), enc_context.size());
if (result != OEMCrypto_SUCCESS) return result;
return pair.fcn->LoadLicense_V18(session, message, message_length,
return pair.fcn->LoadLicense_V18(pair.session, message, message_length,
core_message_length, signature,
signature_length);
}
@@ -2825,8 +2825,8 @@ extern "C" OEMCryptoResult OEMCrypto_GetUsageEntryInfo(
if (!pair.fcn) return OEMCrypto_ERROR_INVALID_SESSION;
if (pair.fcn->GetUsageEntryInfo != nullptr) {
return pair.fcn->GetUsageEntryInfo(pair.session, status,
seconds_since_license_received,
seconds_since_first_decrypt);
seconds_since_license_received,
seconds_since_first_decrypt);
}
return OEMCrypto_ERROR_NOT_IMPLEMENTED;
}