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:
@@ -27,6 +27,7 @@ void PrintTo(const vector<uint8_t>& value, ostream* os);
|
||||
|
||||
namespace wvoec {
|
||||
|
||||
// Make sure this is larger than kMaxKeysPerSession, in oemcrypto_test.cpp
|
||||
const size_t kMaxNumKeys = 20;
|
||||
|
||||
namespace {
|
||||
@@ -61,7 +62,6 @@ const int kDefaultKeyIdLength = 16;
|
||||
const size_t kMaxTestRSAKeyLength = 2000; // Rough estimate.
|
||||
const size_t kMaxPSTLength = 255; // In specification.
|
||||
const size_t kMaxMessageSize = 8 * 1024; // In specification.
|
||||
const size_t kMaxDecryptSize = 100 * 1024; // In specification.
|
||||
|
||||
typedef struct {
|
||||
uint8_t key_id[kTestKeyIdMaxLength];
|
||||
|
||||
Reference in New Issue
Block a user