L3 v19: Fix OEMCrypto_SetDecryptHash signature

OEMCrypto_SetDecryptHash() is refactored in v19 to take less parameters.
The implemention of this function has been done here:
https://widevine-internal-review.git.corp.google.com/c/cdm/+/180670

Function signature in the leve3_adapter needs to be updated.

Test: run_dynamic_level3
Bug: 320525541
Change-Id: Ieb3f3868f1753c246d1d5c36d069f8ef59fafdea
This commit is contained in:
Cong Lin
2024-02-05 14:03:09 -08:00
committed by Robert Shih
parent 5f7bbf0013
commit 3ab4591953
2 changed files with 3 additions and 7 deletions

View File

@@ -111,9 +111,7 @@ OEMCryptoResult Haystack_LoadLicense_V18(OEMCrypto_SESSION session,
const uint8_t* signature,
size_t signature_length);
OEMCryptoResult Haystack_SetDecryptHash(OEMCrypto_SESSION session,
uint32_t frame_number,
const uint8_t* hash,
size_t hash_length);
uint32_t frame_number, uint32_t crc32);
OEMCryptoResult Haystack_GetHashErrorCode(OEMCrypto_SESSION session,
uint32_t* failed_frame_number);
OEMCryptoResult Haystack_BuildInformation(char* buffer, size_t* buffer_length);

View File

@@ -250,10 +250,8 @@ OEMCryptoResult Level3_LoadLicense_V18(OEMCrypto_SESSION session,
}
OEMCryptoResult Level3_SetDecryptHash(OEMCrypto_SESSION session,
uint32_t frame_number,
const uint8_t* hash, size_t hash_length) {
return haystack::Haystack_SetDecryptHash(session, frame_number, hash,
hash_length);
uint32_t frame_number, uint32_t crc32) {
return haystack::Haystack_SetDecryptHash(session, frame_number, crc32);
}
OEMCryptoResult Level3_GetHashErrorCode(OEMCrypto_SESSION session,