Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: ppapi/api/private/ppb_platform_verification_private.idl

Issue 23569005: Add PPAPI interfaces for platform verification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/c/ppb_file_system.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* Copyright 2013 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
6 /**
7 * This file defines the API for platform verification. Currently, it only
8 * supports Chrome OS.
9 */
10
11 [generate_thunk]
12
13 label Chrome {
14 M31 = 0.1
15 };
16
17 /**
18 * The <code>PPB_PlatformVerification_Private</code> interface allows authorized
19 * services to verify that the underlying platform is trusted. An example of a
20 * trusted platform is a Chrome OS device in verified boot mode.
21 */
22
23 interface PPB_PlatformVerification_Private {
24 /**
25 * Create() creates a <code>PPB_PlatformVerification_Private</code> object.
26 *
27 * @pram[in] instance A <code>PP_Instance</code> identifying one instance of
28 * a module.
29 *
30 * @return A <code>PP_Resource</code> corresponding to a
31 * <code>PPB_PlatformVerification_Private</code> if successful, 0 if creation
32 * failed.
33 */
34 PP_Resource Create([in] PP_Instance instance);
35
36 /**
37 * IsPlatformVerification() determines if the provided resource is a
38 * <code>PPB_PlatformVerification_Private</code>.
39 *
40 * @param[in] resource A <code>PP_Resource</code> corresponding to a
41 * <code>PPB_PlatformVerification_Private</code>.
42 *
43 * @return <code>PP_TRUE</code> if the resource is a
44 * <code>PPB_PlatformVerification_Private</code>, <code>PP_FALSE</code> if the
45 * resource is invalid or some type other than
46 * <code>PPB_PlatformVerification_Private</code>.
47 */
48 PP_Bool IsPlatformVerification([in] PP_Resource resource);
49
50 /**
51 * Check if the underlying host platform can be challenged; i.e., verified as
52 * a trusted platform. Useful for avoiding unnecessary work on platforms
53 * which will always fail; i.e. dev mode Chrome OS.
54 *
55 * @return <code>PP_TRUE</code> if a platform challenge might pass and
56 * <code>PP_FALSE</code> if it definitely won't.
57 */
58 PP_Bool CanChallengePlatform([in] PP_Resource instance);
59
60 /**
61 * Requests a platform challenge for a given service id.
62 *
63 * @param[in] service_id A <code>PP_Var</code> of type
64 * <code>PP_VARTYPE_STRING</code> containing the service_id for the challenge.
65 *
66 * @param[in] challenge A <code>PP_Var</code> of type
67 * <code>PP_VARTYPE_ARRAY_BUFFER</code> that contains the challenge data.
68 *
69 * @param[out] signed_data A <code>PP_Var</code> of type
70 * <code>PP_VARTYPE_ARRAY_BUFFER</code> that contains the data signed by the
71 * platform.
72 *
73 * @param[out] signed_data_signature A <code>PP_Var</code> of type
74 * <code>PP_VARTYPE_ARRAY_BUFFER</code> that contains the signature of the
75 * signed data block.
76 *
77 * @param[out] platform_key_certificate A <code>PP_Var</code> of type
78 * <code>PP_VARTYPE_STRING</code> that contains the device specific
79 * certificate for the requested service_id.
80 *
81 * @param[in] callback A <code>PP_CompletionCallback</code> to be called after
82 * the platform challenge has been completed. This callback will only run if
83 * the return code is <code>PP_OK_COMPLETIONPENDING</code>.
84 *
85 * @return An int32_t containing an error code from <code>pp_errors.h</code>.
86 */
87 int32_t ChallengePlatform(
88 [in] PP_Resource instance,
89 [in] PP_Var service_id,
90 [in] PP_Var challenge,
91 [out] PP_Var signed_data,
92 [out] PP_Var signed_data_signature,
93 [out] PP_Var platform_key_certificate,
94 [in] PP_CompletionCallback callback);
95 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/ppb_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698