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

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/private/ppb_platform_verification_private.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
20 * untrusted platform is a Chromebook in developer mode.
ddorwin 2013/09/06 05:58:28 I think we should give an example of where we migh
DaleCurtis 2013/09/06 21:49:32 Done.
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 /* Whether the platform can be challenged and is expected to pass.
51 */
52 PP_Bool CanChallengePlatform();
ddorwin 2013/09/06 05:58:28 Maybe this was discussed elsewhere, but "CanChalle
DaleCurtis 2013/09/06 21:49:32 It was discussed on the the CDM.h CL. CanChallenge
53
54 /**
55 * Requests a platform challenge for a given service id.
56 *
57 * @param[in] service_id A <code>PP_Var</code> of type
58 * <code>PP_VARTYPE_STRING</code> containing the service_id for the challenge.
59 *
60 * @param[in] challenge A <code>PP_Var</code> of type
61 * <code>PP_VARTYPE_ARRAY_BUFFER</code> that contains the challenge data.
62 *
63 * @param[out] signed_data A <code>PP_Var</code> of type
ddorwin 2013/09/06 05:58:28 I'm not clear on this one. Let's discuss.
DaleCurtis 2013/09/06 21:49:32 Done. I've removed the implementation details.
64 * <code>PP_VARTYPE_ARRAY_BUFFER</code> that contains the combined challenge
65 * and nonce data signed by the platform.
66 *
67 * @param[in] signed_data_signature A <code>PP_Var</code> of type
68 * <code>PP_VARTYPE_ARRAY_BUFFER</code> that contains the signature of the
69 * signed data block.
70 *
71 * @param[in] platform_key_certificate A <code>PP_Var</code> of type
72 * <code>PP_VARTYPE_ARRAY_BUFFER</code> that contains the device specific
73 * certificate for the requested service_id.
74 *
75 * @param[in] callback A <code>PP_CompletionCallback</code> to be called after
76 * the platform challenge has been completed. This callback will only run if
77 * the return code is <code>PP_OK_COMPLETIONPENDING</code>.
78 *
79 * @return An int32_t containing an error code from <code>pp_errors.h</code>.
80 */
81 int32_t ChallengePlatform(
82 [in] PP_Instance instance,
83 [in] PP_Var service_id,
84 [in] PP_Var challenge,
85 [out] PP_Var signed_data,
86 [out] PP_Var signed_data_signature,
87 [out] PP_Var platform_key_certificate,
88 [in] PP_CompletionCallback callback);
89 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/private/ppb_platform_verification_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698