Modify Level 3 full decrypt path testing for 15.1

Merge of http://go/wvgerrit/68986
Bug: b/120797208
Test: Android + Linux unit tests

OEMCrypto v15.1 introduced changes to full decrypt path testing.
This CL reflects those changes for the Level 3 code, including
removing InitializeDecryptHash and changes to error reporting.

Change-Id: I09cec6743524d326cb1a6c3ba4dd1764dbefff5f
This commit is contained in:
Srujan Gaddam
2018-12-19 19:26:27 -08:00
parent 9c95e4caae
commit ff307a7c0e
8 changed files with 476042 additions and 476185 deletions

View File

@@ -280,8 +280,6 @@ typedef uint32_t (*L1_GetAnalogOutputFlags_t)(void);
typedef const char* (*L1_BuildInformation_t)(void); typedef const char* (*L1_BuildInformation_t)(void);
typedef uint32_t (*L1_ResourceRatingTier_t)(void); typedef uint32_t (*L1_ResourceRatingTier_t)(void);
typedef uint32_t (*L1_SupportsDecryptHash_t)(void); typedef uint32_t (*L1_SupportsDecryptHash_t)(void);
typedef OEMCryptoResult (*L1_InitializeDecryptHash_t)(
OEMCrypto_SESSION session);
typedef OEMCryptoResult (*L1_SetDecryptHash_t)(OEMCrypto_SESSION session, typedef OEMCryptoResult (*L1_SetDecryptHash_t)(OEMCrypto_SESSION session,
uint32_t frame_number, uint32_t frame_number,
const uint8_t* hash, const uint8_t* hash,
@@ -359,7 +357,6 @@ struct FunctionPointers {
L1_BuildInformation_t BuildInformation; L1_BuildInformation_t BuildInformation;
L1_ResourceRatingTier_t ResourceRatingTier; L1_ResourceRatingTier_t ResourceRatingTier;
L1_SupportsDecryptHash_t SupportsDecryptHash; L1_SupportsDecryptHash_t SupportsDecryptHash;
L1_InitializeDecryptHash_t InitializeDecryptHash;
L1_SetDecryptHash_t SetDecryptHash; L1_SetDecryptHash_t SetDecryptHash;
L1_GetHashErrorCode_t GetHashErrorCode; L1_GetHashErrorCode_t GetHashErrorCode;
@@ -953,7 +950,6 @@ class Adapter {
level3_.CopyOldUsageEntry = Level3_CopyOldUsageEntry; level3_.CopyOldUsageEntry = Level3_CopyOldUsageEntry;
level3_.CreateOldUsageEntry = Level3_CreateOldUsageEntry; level3_.CreateOldUsageEntry = Level3_CreateOldUsageEntry;
level3_.SupportsDecryptHash = Level3_SupportsDecryptHash; level3_.SupportsDecryptHash = Level3_SupportsDecryptHash;
level3_.InitializeDecryptHash = Level3_InitializeDecryptHash;
level3_.SetDecryptHash = Level3_SetDecryptHash; level3_.SetDecryptHash = Level3_SetDecryptHash;
level3_.GetHashErrorCode = Level3_GetHashErrorCode; level3_.GetHashErrorCode = Level3_GetHashErrorCode;
// clang-format on // clang-format on

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -84,7 +84,6 @@ namespace wvoec3 {
#define Level3_SetSandbox _lcc84 #define Level3_SetSandbox _lcc84
#define Level3_ResourceRatingTier _lcc85 #define Level3_ResourceRatingTier _lcc85
#define Level3_SupportsDecryptHash _lcc86 #define Level3_SupportsDecryptHash _lcc86
#define Level3_InitializeDecryptHash _lcc87
#define Level3_SetDecryptHash _lcc88 #define Level3_SetDecryptHash _lcc88
#define Level3_GetHashErrorCode _lcc89 #define Level3_GetHashErrorCode _lcc89
#define Level3_BuildInformation _lcc90 #define Level3_BuildInformation _lcc90
@@ -154,7 +153,6 @@ namespace wvoec3 {
#define Level3_SetSandbox _oecc84 #define Level3_SetSandbox _oecc84
#define Level3_ResourceRatingTier _oecc85 #define Level3_ResourceRatingTier _oecc85
#define Level3_SupportsDecryptHash _oecc86 #define Level3_SupportsDecryptHash _oecc86
#define Level3_InitializeDecryptHash _oecc87
#define Level3_SetDecryptHash _oecc88 #define Level3_SetDecryptHash _oecc88
#define Level3_GetHashErrorCode _oecc89 #define Level3_GetHashErrorCode _oecc89
#define Level3_BuildInformation _oecc90 #define Level3_BuildInformation _oecc90
@@ -359,7 +357,6 @@ OEMCryptoResult Level3_SetSandbox(const uint8_t* sandbox_id,
size_t sandbox_id_length); size_t sandbox_id_length);
uint32_t Level3_ResourceRatingTier(); uint32_t Level3_ResourceRatingTier();
uint32_t Level3_SupportsDecryptHash(); uint32_t Level3_SupportsDecryptHash();
OEMCryptoResult Level3_InitializeDecryptHash(OEMCrypto_SESSION session);
OEMCryptoResult Level3_SetDecryptHash(OEMCrypto_SESSION session, OEMCryptoResult Level3_SetDecryptHash(OEMCrypto_SESSION session,
uint32_t frame_number, uint32_t frame_number,