This is a merge of http://go/wvgerrit/13710 The oemcrypto adapter loads a version 8, 9 or 10 library and adds backwards compatibility for version 8 or 9. The only function whose signature has changed from v9 to v10 is OEMCrypto_GetHDCPCability. This CL adds backwards compatibility for that function. Level 3 libraries are now: level3/arm/libwvlevel3.a Level3 Library Mar 17 2015 14:33:34 level3/x86/libwvlevel3.a Level3 Library Mar 17 2015 14:30:23 b/19785099 L1 Widevine missing/broken on master (Fugu) b/19789909 L1 Widevine missing on master (AAY75B) Change-Id: I9bd716f5cdffaf1bfbdfcd8ed067af3f5d0ac9ba
34 lines
1.5 KiB
C++
34 lines
1.5 KiB
C++
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
#ifndef WVCDM_CORE_OEMCRYPTO_ADAPTER_H_
|
|
#define WVCDM_CORE_OEMCRYPTO_ADAPTER_H_
|
|
|
|
#include "OEMCryptoCENC.h"
|
|
|
|
namespace wvcdm {
|
|
|
|
enum SecurityLevel { kLevelDefault, kLevel3 };
|
|
|
|
/* This attempts to open a session at the desired security level.
|
|
If one level is not available, the other will be used instead. */
|
|
OEMCryptoResult OEMCrypto_OpenSession(OEMCrypto_SESSION* session,
|
|
SecurityLevel level);
|
|
OEMCryptoResult OEMCrypto_InstallKeybox(const uint8_t* keybox,
|
|
size_t keyBoxLength,
|
|
SecurityLevel level);
|
|
OEMCryptoResult OEMCrypto_IsKeyboxValid(SecurityLevel level);
|
|
OEMCryptoResult OEMCrypto_GetDeviceID(uint8_t* deviceID, size_t* idLength,
|
|
SecurityLevel level);
|
|
OEMCryptoResult OEMCrypto_GetKeyData(uint8_t* keyData, size_t* keyDataLength,
|
|
SecurityLevel level);
|
|
uint32_t OEMCrypto_APIVersion(SecurityLevel level);
|
|
const char* OEMCrypto_SecurityLevel(SecurityLevel level);
|
|
OEMCryptoResult OEMCrypto_GetHDCPCapability(SecurityLevel level,
|
|
OEMCrypto_HDCP_Capability* current,
|
|
OEMCrypto_HDCP_Capability* maximum);
|
|
bool OEMCrypto_SupportsUsageTable(SecurityLevel level);
|
|
bool OEMCrypto_IsAntiRollbackHwPresent(SecurityLevel level);
|
|
} // namespace wvcdm
|
|
|
|
#endif // WVCDM_CORE_OEMCRYPTO_ADAPTER_H_
|