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
38 lines
1.1 KiB
C++
38 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 device
|
|
// that does not have persistant storage or a keybox.
|
|
//
|
|
// Note: We also define it to be L2 for illustration only. Production devices
|
|
// are rarely level 2.
|
|
#include "oemcrypto_engine_mock.h"
|
|
|
|
namespace wvoec_mock {
|
|
|
|
class CertOnlyCryptoEngine : public CryptoEngine {
|
|
public:
|
|
explicit CertOnlyCryptoEngine(std::auto_ptr<wvcdm::FileSystem> file_system)
|
|
: CryptoEngine(file_system) {}
|
|
|
|
bool config_local_display_only() { return true; }
|
|
|
|
bool config_supports_usage_table() { return false; }
|
|
|
|
OEMCrypto_ProvisioningMethod config_provisioning_method() {
|
|
return OEMCrypto_DrmCertificate;
|
|
}
|
|
|
|
const char* config_security_level() { return "L2"; }
|
|
};
|
|
|
|
CryptoEngine* CryptoEngine::MakeCryptoEngine(
|
|
std::auto_ptr<wvcdm::FileSystem> file_system) {
|
|
return new CertOnlyCryptoEngine(file_system);
|
|
}
|
|
|
|
} // namespace wvoec_mock
|