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