[Bug 24027] Define a generic Initialization Data solution for ISO Base Media File Format and/or Common Encryption (will be used by Clear Key)

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24027

--- Comment #2 from Pavel Pergamenshchik <ppergame@google.com> ---
I propose this format.

SystemID value: 58147ec8-0423-4659-92e6-f52c5ce8c3cc (represented here in
network byte order)
Contents of Data: 128-bit key ID, with no other information

Example in C-encoded hex, for a KID having the ASCII value "ClearKeyTestKID\0":

static const char* kClearKeyPSSH = {
    0x00, 0x00, 0x00, 0x30, 0x70, 0x73, 0x73, 0x68, // BMFF box header
    0x00, 0x00, 0x00, 0x00,                         // Full box header
    0x58, 0x14, 0x7e, 0xc8, 0x04, 0x23, 0x46, 0x59, // SystemID
    0x92, 0xe6, 0xf5, 0x2c, 0x5c, 0xe8, 0xc3, 0xcc,
    0x00, 0x00, 0x00, 0x10,                         // Size of Data (KID)
    0x43, 0x6c, 0x65, 0x61, 0x72, 0x4b, 0x65, 0x79, // Data (KID):
    0x54, 0x65, 0x73, 0x74, 0x4b, 0x49, 0x44, 0x00  // "ClearKeyTestKID\0"
};

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 28 January 2014 00:32:35 UTC