Add New Parameters to CreateUsageTableHeader
Merge from Widevine repo of http://go/wvgerrit/23166 This changes OEMCrypto_CreateUsageTableHeader so that the new header is passed back in a buffer to the cdm layer. I hacked out the haystack call and just stubbed out the mock call. This should still build and run with previous liblevel3.a builds. I also removed from the header some function names that are no longer part of OEMCrypto v13. bug:31458046 Change-Id: Ie490c482fe2457076f9026369f4b4b9491a4eb81
This commit is contained in:
@@ -75,6 +75,8 @@ typedef enum OEMCryptoResult {
|
||||
OEMCrypto_ERROR_WRONG_PST = 44,
|
||||
OEMCrypto_ERROR_WRONG_KEYS = 45,
|
||||
OEMCrypto_ERROR_MISSING_MASTER = 46,
|
||||
OEMCrypto_ERROR_LICENSE_INACTIVE = 47,
|
||||
OEMCrypto_ERROR_ENTRY_NEEDS_UPDATE = 48,
|
||||
} OEMCryptoResult;
|
||||
|
||||
/*
|
||||
@@ -379,9 +381,6 @@ typedef enum OEMCrypto_ProvisioningMethod {
|
||||
#define OEMCrypto_LoadSRM _oecc55
|
||||
#define OEMCrypto_LoadKeys _oecc56
|
||||
#define OEMCrypto_RemoveSRM _oecc57
|
||||
#define OEMCrypto_SupportsDecryptHash _oecc58
|
||||
#define OEMCrypto_SetDecryptHash _oecc59
|
||||
#define OEMCrypto_VerifyDecryptHash _oecc60
|
||||
#define OEMCrypto_CreateUsageTableHeader _oecc61
|
||||
#define OEMCrypto_LoadUsageTableHeader _oecc62
|
||||
#define OEMCrypto_CreateNewUsageEntry _oecc63
|
||||
@@ -2870,7 +2869,8 @@ OEMCryptoResult OEMCrypto_LoadSRM(const uint8_t* buffer,
|
||||
OEMCryptoResult OEMCrypto_RemoveSRM();
|
||||
|
||||
/* TODO(fredgc): copy text from http://go/wvgerrit/22887 */
|
||||
OEMCryptoResult OEMCrypto_CreateUsageTableHeader();
|
||||
OEMCryptoResult OEMCrypto_CreateUsageTableHeader(uint8_t* header_buffer,
|
||||
size_t* header_buffer_length);
|
||||
|
||||
/* TODO(fredgc): copy text from http://go/wvgerrit/22887 */
|
||||
OEMCryptoResult OEMCrypto_LoadUsageTableHeader(const uint8_t* buffer,
|
||||
|
||||
@@ -68,9 +68,6 @@ namespace wvoec3 {
|
||||
#define Level3_LoadSRM _lcc55
|
||||
#define Level3_LoadKeys _lcc56
|
||||
#define Level3_RemoveSRM _lcc57
|
||||
#define Level3_SupportsDecryptHash _lcc58
|
||||
#define Level3_SetDecryptHash _lcc59
|
||||
#define Level3_VerifyDecryptHash _lcc60
|
||||
#define Level3_CreateUsageTableHeader _lcc61
|
||||
#define Level3_LoadUsageTableHeader _lcc62
|
||||
#define Level3_CreateNewUsageEntry _lcc63
|
||||
@@ -254,6 +251,7 @@ OEMCryptoResult Level3_SetDecryptHash(OEMCrypto_SESSION session,
|
||||
size_t hash_length);
|
||||
OEMCryptoResult Level3_VerifyDecryptHash(OEMCrypto_SESSION session,
|
||||
uint64_t* failure_data);
|
||||
// TODO(fredgc): add stub for level3.
|
||||
OEMCryptoResult Level3_CreateUsageTableHeader();
|
||||
OEMCryptoResult Level3_LoadUsageTableHeader(const uint8_t* buffer,
|
||||
size_t buffer_length);
|
||||
|
||||
Reference in New Issue
Block a user