OEMCrypto Resource Rating
Merge from master branch of Widevine repo of http://go/wvgerrit/66072 Merge from oemcrypto-v15 branch of Widevine repo of http://go/wvgerrit/63764 This adds the function OEMCrypto_ResourceRatingTier to the oemcrypto referenece code, dynamic adapter, and unit tests. Bug: 117110800 Test: tested as part of http://go/ag/5501993 Change-Id: Idf47af405f0c69601108b75c788a97b30abdb39d
This commit is contained in:
@@ -143,6 +143,7 @@ class CryptoEngine {
|
||||
virtual uint8_t config_security_patch_level() { return 0; }
|
||||
|
||||
// If 0 no restriction, otherwise it's the max buffer for DecryptCENC.
|
||||
// This is the same as the max subsample size, not the sample or frame size.
|
||||
virtual size_t max_buffer_size() { return 1024 * 100; } // 100 KiB.
|
||||
|
||||
virtual bool srm_update_supported() { return false; }
|
||||
@@ -169,6 +170,8 @@ class CryptoEngine {
|
||||
// size is unlimited -- or limited only by memory size.
|
||||
virtual size_t max_usage_table_size() { return 0; }
|
||||
|
||||
virtual uint32_t resource_rating() { return 1; }
|
||||
|
||||
// Set destination pointer based on the output destination description.
|
||||
OEMCryptoResult SetDestination(OEMCrypto_DestBufferDesc* out_description,
|
||||
size_t data_length, uint8_t subsample_flags);
|
||||
|
||||
Reference in New Issue
Block a user