Merge from Widevine repo of http://go/wvgerrit/47860 This CL updates the copyright notice to indicate that files shared with partners are shared under the Widevine Master License Agreement. bug: 77926774 test: comment change only Change-Id: I0423668111578b80fb39a932d763df2827e2dfc3
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine Master
|
|
// License Agreement.
|
|
//
|
|
// Mock implementation of OEMCrypto APIs
|
|
//
|
|
// This file contains oemcrypto engine properties that would be for a
|
|
// level 1 device.
|
|
#include "oemcrypto_engine_mock.h"
|
|
|
|
namespace wvoec_mock {
|
|
|
|
class L1CryptoEngine : public CryptoEngine {
|
|
public:
|
|
explicit L1CryptoEngine(std::auto_ptr<wvcdm::FileSystem> file_system)
|
|
: CryptoEngine(file_system) {}
|
|
|
|
bool config_local_display_only() { return true; }
|
|
|
|
OEMCrypto_HDCP_Capability config_maximum_hdcp_capability() {
|
|
return HDCP_V2;
|
|
}
|
|
|
|
bool config_is_anti_rollback_hw_present() { return true; }
|
|
|
|
const char* config_security_level() { return "L1"; }
|
|
|
|
// This should start at 0, and be incremented only when a security patch has
|
|
// been applied to the device that fixes a security bug.
|
|
uint8_t config_security_patch_level() { return 3; }
|
|
};
|
|
|
|
CryptoEngine* CryptoEngine::MakeCryptoEngine(
|
|
std::auto_ptr<wvcdm::FileSystem> file_system) {
|
|
return new L1CryptoEngine(file_system);
|
|
}
|
|
|
|
} // namespace wvoec_mock
|