OEMCrypto v14 adapter and plugin changes
Merge from Widevine repo of http://go/wvgerrit/41621 This updates the dynamic adapter and some plugins to work with the new OEMCrypto v14 API. bug: 70334345 Entitlement License - reference code and unit tests bug: 34103646 Encryption Scheme Propagation bug: 69552641 Update OEMCrypto_LoadTestKeybox bug: 69867568 OEMCrypto - Report Analog test: In child CL. Change-Id: I51349d15b779d52d245bd234867bbd2bbe7b9ae7
This commit is contained in:
@@ -203,10 +203,10 @@ class DefaultKeySession : public KeySession {
|
||||
} else {
|
||||
LOGV("DefaultKeySession::LoadKeys: enc_mac_key not set");
|
||||
}
|
||||
std::vector<OEMCrypto_KeyObject> load_keys(keys.size());
|
||||
std::vector<OEMCrypto_KeyObject_V13> load_keys(keys.size());
|
||||
for (size_t i = 0; i < keys.size(); ++i) {
|
||||
const CryptoKey* ki = &keys[i];
|
||||
OEMCrypto_KeyObject* ko = &load_keys[i];
|
||||
OEMCrypto_KeyObject_V13* ko = &load_keys[i];
|
||||
ko->key_id = msg + GetOffset(message, ki->key_id());
|
||||
ko->key_id_length = ki->key_id().length();
|
||||
ko->key_data_iv = msg + GetOffset(message, ki->key_data_iv());
|
||||
|
||||
Reference in New Issue
Block a user