Source release 19.5.0
This commit is contained in:
@@ -441,3 +441,12 @@ OEMCryptoResult _oecc155(OEMCrypto_SESSION session, uint32_t intent,
|
||||
|
||||
// OEMCrypto_GetBCCSignatureType defined in v19.4
|
||||
OEMCryptoResult _oecc156(OEMCrypto_BCCSignatureType* bcc_signature_type);
|
||||
|
||||
// OEMCrypto_GetPVRKey defined in v18.9
|
||||
OEMCryptoResult _oecc157(OEMCrypto_SESSION session, uint8_t* wrapped_pvr_key,
|
||||
size_t* wrapped_pvr_key_length);
|
||||
|
||||
// OEMCrypto_LoadPVRKey defined in v18.9
|
||||
OEMCryptoResult _oecc158(OEMCrypto_SESSION session,
|
||||
const uint8_t* wrapped_pvr_key,
|
||||
size_t wrapped_pvr_key_length);
|
||||
|
||||
@@ -317,14 +317,14 @@ TEST_F(OEMCryptoClientTest, FreeUnallocatedSecureBufferNoFailure) {
|
||||
*/
|
||||
TEST_F(OEMCryptoClientTest, VersionNumber) {
|
||||
const std::string log_message =
|
||||
"OEMCrypto unit tests for API 19.4. Tests last updated 2024-11-04";
|
||||
"OEMCrypto unit tests for API 19.5. Tests last updated 2025-03-11";
|
||||
cout << " " << log_message << "\n";
|
||||
cout << " " << "These tests are part of Android V." << "\n";
|
||||
LOGI("%s", log_message.c_str());
|
||||
// If any of the following fail, then it is time to update the log message
|
||||
// above.
|
||||
EXPECT_EQ(ODK_MAJOR_VERSION, 19);
|
||||
EXPECT_EQ(ODK_MINOR_VERSION, 4);
|
||||
EXPECT_EQ(ODK_MINOR_VERSION, 5);
|
||||
EXPECT_EQ(kCurrentAPI, static_cast<unsigned>(ODK_MAJOR_VERSION));
|
||||
RecordWvProperty("test_major_version", std::to_string(ODK_MAJOR_VERSION));
|
||||
RecordWvProperty("test_minor_version", std::to_string(ODK_MINOR_VERSION));
|
||||
|
||||
@@ -252,7 +252,13 @@ TEST_F(OEMCryptoProv40Test, GetBootCertificateChainSuccess) {
|
||||
OEMCrypto_SUCCESS);
|
||||
util::BccValidator validator;
|
||||
EXPECT_EQ(util::CborMessageStatus::kCborParseOk, validator.Parse(bcc));
|
||||
EXPECT_EQ(util::CborMessageStatus::kCborValidateOk, validator.Validate());
|
||||
util::CborMessageStatus status = validator.Validate();
|
||||
EXPECT_LT(status, util::CborMessageStatus::kCborValidateError);
|
||||
if (status >= util::CborMessageStatus::kCborValidateError) {
|
||||
const std::string parsed_bcc = validator.GetFormattedMessage();
|
||||
LOGE("%s", parsed_bcc.c_str());
|
||||
LOGE("Validation results\n%s", validator.PrintValidateMessage().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
// Verifies BCC signature and its type if they are available.
|
||||
|
||||
Reference in New Issue
Block a user