Pick widevine oemcrypto-v18 change

No-Typo-Check: From a third party header file
Bug: 260918793
Test: unit tests
Test: atp v2/widevine-eng/drm_compliance
Change-Id: I36effd6a10a99bdb2399ab1f4a0fad026d607c70
This commit is contained in:
Kyle Zhang
2022-12-16 03:21:08 +00:00
parent 4586522c07
commit 11255b7426
105 changed files with 324641 additions and 299787 deletions

View File

@@ -33,7 +33,7 @@ class WVGenericCryptoInterface {
size_t buffer_length, const uint8_t* iv,
OEMCrypto_Algorithm algorithm,
uint8_t* out_buffer) {
return OEMCrypto_Generic_Encrypt(session, in_buffer, buffer_length, iv,
return OEMCrypto_Generic_Encrypt_V17(session, in_buffer, buffer_length, iv,
algorithm, out_buffer);
}
@@ -42,7 +42,7 @@ class WVGenericCryptoInterface {
size_t buffer_length, const uint8_t* iv,
OEMCrypto_Algorithm algorithm,
uint8_t* out_buffer) {
return OEMCrypto_Generic_Decrypt(session, in_buffer, buffer_length, iv,
return OEMCrypto_Generic_Decrypt_V17(session, in_buffer, buffer_length, iv,
algorithm, out_buffer);
}
@@ -50,7 +50,7 @@ class WVGenericCryptoInterface {
const uint8_t* in_buffer, size_t buffer_length,
OEMCrypto_Algorithm algorithm,
uint8_t* signature, size_t* signature_length) {
return OEMCrypto_Generic_Sign(session, in_buffer, buffer_length, algorithm,
return OEMCrypto_Generic_Sign_V17(session, in_buffer, buffer_length, algorithm,
signature, signature_length);
}
@@ -59,7 +59,7 @@ class WVGenericCryptoInterface {
OEMCrypto_Algorithm algorithm,
const uint8_t* signature,
size_t signature_length) {
return OEMCrypto_Generic_Verify(session, in_buffer, buffer_length,
return OEMCrypto_Generic_Verify_V17(session, in_buffer, buffer_length,
algorithm, signature, signature_length);
}