• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// ----------------------------------------------------------------------------
2// device_files.proto
3// ----------------------------------------------------------------------------
4// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
5// source code may only be used and distributed under the Widevine Master
6// License Agreement.
7//
8// Description:
9//   Format of various files stored at the device.
10//
11syntax = "proto2";
12
13package android.hardware.drm.V1_2.clearkey;
14
15// need this if we are using libprotobuf-cpp-2.3.0-lite
16option optimize_for = LITE_RUNTIME;
17
18message License {
19  enum LicenseState {
20    ACTIVE = 1;
21    RELEASING = 2;
22  }
23
24  optional LicenseState state = 1;
25  optional bytes license = 2;
26}
27
28message OfflineFile {
29  enum FileType {
30    LICENSE = 1;
31  }
32
33  enum FileVersion {
34    VERSION_1 = 1;
35  }
36
37  optional FileType type = 1;
38  optional FileVersion version = 2 [default = VERSION_1];
39  optional License license = 3;
40
41}
42
43message HashedFile {
44  optional bytes file = 1;
45  // A raw (not hex-encoded) SHA256, taken over the bytes of 'file'.
46  optional bytes hash = 2;
47}
48