-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
259 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
syntax = "proto2"; | ||
package pssh; | ||
|
||
message WidevineCencHeader { | ||
enum Algorithm { | ||
UNENCRYPTED = 0; | ||
AESCTR = 1; | ||
} | ||
optional Algorithm algorithm = 1; | ||
repeated bytes key_id = 2; | ||
|
||
// Content provider name. | ||
optional string provider = 3; | ||
|
||
// A content identifier, specificed by content provider. | ||
optional bytes content_id = 4; | ||
|
||
// Track type. Acceptable values are SD, HD, and AUDIO. Used to | ||
// differentiate content keys used by an asset. | ||
optional string track_type_deprecated = 5; | ||
|
||
// The name of a registered policy to be used for this asset. | ||
optional string policy = 6; | ||
|
||
// Crypto period index, for media using key rotation. | ||
optional uint32 crypto_period_index = 7; | ||
|
||
// Optional protected context for group content. The grouped_license is a | ||
// serialized SignedMessage. | ||
optional bytes grouped_license = 8; | ||
|
||
// Protection scheme identifying the encryption algorithm. | ||
// Represented as one of the following 4CC values: | ||
// 'cenc' (AESCTR), 'cbc1' (AESCBC), | ||
// 'cens' (AESCTR subsample), 'cbcs' (AESCBC subsample). | ||
optional uint32 protection_scheme = 9; | ||
|
||
// Optional. For media using key rotation, this represents the duration | ||
// of each crypto period in seconds. | ||
optional uint32 crypto_period_seconds = 10; | ||
} |