OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // TODO(xhwang): Move this out of media if it is needed anywhere else. | |
6 module media.interfaces; | |
7 | |
8 // Allows authorized services to verify that the underlying platform is trusted. | |
9 // An example of a trusted platform is a Chrome OS device in verified boot mode. | |
10 // This can be used for protected content playback. | |
11 // | |
12 // Input parameters: | |
13 // - |service_id|: the service ID for the |challenge|. | |
14 // - |challenge|: the challenge data. | |
15 // | |
16 // Output parameters: | |
17 // - |success|: Whether the platform is successfully verified. If true/false the | |
DaleCurtis
2015/05/07 00:49:48
Consistently use upper case or lower case after th
xhwang
2015/05/07 18:49:45
Done.
| |
18 // following 3 parameters should be non-empty/empty. | |
19 // - |signed_data|: the data signed by the platform. | |
20 // - |signed_data_signature|: the signature of the signed data block. | |
21 // - |platform_key_certificate|: the device specific certificate for the | |
22 // requested service. | |
23 interface PlatformVerification { | |
24 ChallengePlatform(string service_id, string challenge) => | |
25 (bool success, | |
26 string? signed_data, | |
27 string? signed_data_signature, | |
28 string? platform_key_certificate); | |
29 }; | |
OLD | NEW |