Merge changes I09cec674,Iee28fa90,I1ef35e15
* changes: Modify Level 3 full decrypt path testing for 15.1 Remove OEMCrypto_InitializeDecryptHash Update OEMCrypto documentation to 15.1
This commit is contained in:
committed by
Android (Google) Code Review
commit
2870210598
@@ -280,8 +280,6 @@ typedef uint32_t (*L1_GetAnalogOutputFlags_t)(void);
|
||||
typedef const char* (*L1_BuildInformation_t)(void);
|
||||
typedef uint32_t (*L1_ResourceRatingTier_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,
|
||||
uint32_t frame_number,
|
||||
const uint8_t* hash,
|
||||
@@ -359,7 +357,6 @@ struct FunctionPointers {
|
||||
L1_BuildInformation_t BuildInformation;
|
||||
L1_ResourceRatingTier_t ResourceRatingTier;
|
||||
L1_SupportsDecryptHash_t SupportsDecryptHash;
|
||||
L1_InitializeDecryptHash_t InitializeDecryptHash;
|
||||
L1_SetDecryptHash_t SetDecryptHash;
|
||||
L1_GetHashErrorCode_t GetHashErrorCode;
|
||||
|
||||
@@ -807,7 +804,6 @@ class Adapter {
|
||||
LOOKUP( 9, 12, UpdateUsageTable, OEMCrypto_UpdateUsageTable);
|
||||
LOOKUP_ALL( 8, WrapKeybox, OEMCrypto_WrapKeybox);
|
||||
LOOKUP_ALL(15, SupportsDecryptHash, OEMCrypto_SupportsDecryptHash);
|
||||
LOOKUP_ALL(15, InitializeDecryptHash, OEMCrypto_InitializeDecryptHash);
|
||||
LOOKUP_ALL(15, SetDecryptHash, OEMCrypto_SetDecryptHash);
|
||||
LOOKUP_ALL(15, GetHashErrorCode, OEMCrypto_GetHashErrorCode);
|
||||
// clang-format on
|
||||
@@ -954,7 +950,6 @@ class Adapter {
|
||||
level3_.CopyOldUsageEntry = Level3_CopyOldUsageEntry;
|
||||
level3_.CreateOldUsageEntry = Level3_CreateOldUsageEntry;
|
||||
level3_.SupportsDecryptHash = Level3_SupportsDecryptHash;
|
||||
level3_.InitializeDecryptHash = Level3_InitializeDecryptHash;
|
||||
level3_.SetDecryptHash = Level3_SetDecryptHash;
|
||||
level3_.GetHashErrorCode = Level3_GetHashErrorCode;
|
||||
// clang-format on
|
||||
@@ -2376,17 +2371,6 @@ extern "C" uint32_t OEMCrypto_SupportsDecryptHash(){
|
||||
return OEMCrypto_SupportsDecryptHash(kLevelDefault);
|
||||
}
|
||||
|
||||
extern "C" OEMCryptoResult OEMCrypto_InitializeDecryptHash(
|
||||
OEMCrypto_SESSION session) {
|
||||
if (!gAdapter.get()) return OEMCrypto_ERROR_UNKNOWN_FAILURE;
|
||||
LevelSession pair = gAdapter->GetSession(session);
|
||||
if (!pair.fcn) return OEMCrypto_ERROR_INVALID_SESSION;
|
||||
if (pair.fcn->InitializeDecryptHash == NULL) {
|
||||
return OEMCrypto_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
return pair.fcn->InitializeDecryptHash(pair.session);
|
||||
}
|
||||
|
||||
extern "C" OEMCryptoResult OEMCrypto_SetDecryptHash(OEMCrypto_SESSION session,
|
||||
uint32_t frame_number,
|
||||
const uint8_t* hash,
|
||||
|
||||
Reference in New Issue
Block a user