Source release 14.0.0

This commit is contained in:
John W. Bruce
2018-05-16 17:35:40 -07:00
parent 31381a1311
commit 3ab70cec4e
2053 changed files with 1585838 additions and 4614 deletions

View File

@@ -10,19 +10,26 @@
namespace wvcdm_test_auth {
extern const uint32_t kKeyboxSystemId;
// This is the format of a Widevine keybox.
typedef struct { // 128 bytes total.
// C character string identifying the device. Null terminated.
uint8_t device_id_[32];
// 128 bit AES key assigned to device. Generated by Widevine.
uint8_t device_key_[16];
// Key Data. Encrypted data.
uint8_t data_[72];
// Constant code used to recognize a valid keybox "kbox" = 0x6b626f78.
uint8_t magic_[4];
// The CRC checksum of the first 124 bytes of the keybox.
uint8_t crc_[4];
} WidevineKeybox;
extern const uint8_t* kKeybox;
extern const uint8_t* kKeyboxValid02;
extern const uint8_t* kKeyboxValid03;
extern const size_t kKeyboxSize;
extern const uint32_t kTestKeyboxSystemId;
const size_t kKeyboxDeviceIdOffset = 0;
const size_t kKeyboxDeviceIdSize = 32;
const size_t kKeyboxDataOffset = 64;
const size_t kKeyboxDataSize = 48;
extern const WidevineKeybox kTestKeybox;
extern const WidevineKeybox kValidKeybox01;
extern const WidevineKeybox kValidKeybox02;
extern const WidevineKeybox kValidKeybox03;
} // namespace wvcdm_test_auth