Fix the length of the extracted BCC
After a successful extraction, the vector of BCC should be resized to the correct value. This CL picks the change from http://ag/19196496, which fixes the bcc size for our internal extraction tool. Test: build and run extraction tool Bug: 237029566 Change-Id: I0c73861e363215486a93abebac84da2ce49d43a8
This commit is contained in:
@@ -114,6 +114,7 @@ OEMCryptoResult OEMCryptoInterface::GetBcc(std::vector<uint8_t>& bcc) {
|
|||||||
result = GetBootCertificateChain(bcc.data(), &bcc_size,
|
result = GetBootCertificateChain(bcc.data(), &bcc_size,
|
||||||
additional_signature.data(),
|
additional_signature.data(),
|
||||||
&additional_signature_size);
|
&additional_signature_size);
|
||||||
|
if (result == OEMCrypto_SUCCESS) bcc.resize(bcc_size);
|
||||||
LOGI("GetBootCertificateChain second attempt result %d", result);
|
LOGI("GetBootCertificateChain second attempt result %d", result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user