40 lines
1.3 KiB
Protocol Buffer
40 lines
1.3 KiB
Protocol Buffer
// Copyright 2017 Google LLC. All rights reserved.
|
|
// Author: tinskip@google.com (Thomas Inskip)
|
|
//
|
|
// Description:
|
|
// Protocol messages used for the Verified Media Pipeline feature of the
|
|
// Widevine CDM.
|
|
|
|
syntax = "proto2";
|
|
|
|
package vmp;
|
|
|
|
import "protos/public/hash_algorithm.proto";
|
|
|
|
option optimize_for = LITE_RUNTIME;
|
|
|
|
message VmpData {
|
|
message SignedBinaryInfo {
|
|
// File name of the binary. Required.
|
|
optional string file_name = 1;
|
|
// Index into |certificates| for the code signing certificate used to sign
|
|
// this binary. Required if the binary is signed..
|
|
optional uint32 certificate_index = 2;
|
|
// SHA-512 digest of signed binary. Required if the file was present.
|
|
optional bytes binary_hash = 3;
|
|
// Flags from signature file, if any. Required if signed.
|
|
optional uint32 flags = 4;
|
|
// Signature of the binary. Required if signed.
|
|
optional bytes signature = 5;
|
|
// Optional field that indicates the hash algorithm used in signature
|
|
// scheme.
|
|
optional video_widevine.HashAlgorithmProto hash_algorithm = 6;
|
|
}
|
|
|
|
// Distinct certificates used in binary code signing. No certificate should
|
|
// be present more than once.
|
|
repeated bytes certificates = 1;
|
|
// Info about each signed binary.
|
|
repeated SignedBinaryInfo signed_binary_info = 2;
|
|
}
|