Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-interfaces: Commit

hardware/interfaces


Commit MetaInfo

Révision0564edd993398232c9524f00bc14c7229c6b2523 (tree)
l'heure2017-10-11 01:27:46
AuteurIris Chang <iris.chang@medi...>
Commiterandroid-build-merger

Message de Log

VTS: fix VtsHalKeymasterV3_0Target issue am: 926a8e7440
am: 7b770a8d70

Change-Id: I0bee7c1bdf4e40a2024fadc0b510ca002806c65e

Change Summary

Modification

--- a/keymaster/3.0/vts/functional/attestation_record.cpp
+++ b/keymaster/3.0/vts/functional/attestation_record.cpp
@@ -274,10 +274,12 @@ ErrorCode parse_attestation_record(const uint8_t* asn1_key_desc, size_t asn1_key
274274 *keymaster_security_level =
275275 static_cast<SecurityLevel>(ASN1_ENUMERATED_get(record->keymaster_security_level));
276276
277- attestation_challenge->setToExternal(record->attestation_challenge->data,
278- record->attestation_challenge->length);
279-
280- unique_id->setToExternal(record->unique_id->data, record->unique_id->length);
277+ auto& chall = record->attestation_challenge;
278+ attestation_challenge->resize(chall->length);
279+ memcpy(attestation_challenge->data(), chall->data, chall->length);
280+ auto& uid = record->unique_id;
281+ unique_id->resize(uid->length);
282+ memcpy(unique_id->data(), uid->data, uid->length);
281283
282284 ErrorCode error = extract_auth_list(record->software_enforced, software_enforced);
283285 if (error != ErrorCode::OK) return error;
Afficher sur ancien navigateur de dépôt.