Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PPB_PlatformVerification_Private_0_2 Struct Reference

#include <ppb_platform_verification_private.h>

Public Attributes

PP_Resource(* Create )(PP_Instance instance)
 
PP_Bool(* IsPlatformVerification )(PP_Resource resource)
 
int32_t(* ChallengePlatform )(PP_Resource instance, struct PP_Var service_id, struct PP_Var challenge, struct PP_Var *signed_data, struct PP_Var *signed_data_signature, struct PP_Var *platform_key_certificate, struct PP_CompletionCallback callback)
 

Detailed Description

The PPB_PlatformVerification_Private interface allows authorized services to verify that the underlying platform is trusted. An example of a trusted platform is a Chrome OS device in verified boot mode.

Member Data Documentation

int32_t(* PPB_PlatformVerification_Private_0_2::ChallengePlatform)(PP_Resource instance, struct PP_Var service_id, struct PP_Var challenge, struct PP_Var *signed_data, struct PP_Var *signed_data_signature, struct PP_Var *platform_key_certificate, struct PP_CompletionCallback callback)

Requests a platform challenge for a given service id.

Parameters
[in]service_idA PP_Var of type PP_VARTYPE_STRING containing the service_id for the challenge.
[in]challengeA PP_Var of type PP_VARTYPE_ARRAY_BUFFER that contains the challenge data.
[out]signed_dataA PP_Var of type PP_VARTYPE_ARRAY_BUFFER that contains the data signed by the platform.
[out]signed_data_signatureA PP_Var of type PP_VARTYPE_ARRAY_BUFFER that contains the signature of the signed data block.
[out]platform_key_certificateA PP_Var of type PP_VARTYPE_STRING that contains the device specific certificate for the requested service_id.
[in]callbackA PP_CompletionCallback to be called after the platform challenge has been completed. This callback will only run if the return code is PP_OK_COMPLETIONPENDING.
Returns
An int32_t containing an error code from pp_errors.h.
PP_Resource(* PPB_PlatformVerification_Private_0_2::Create)(PP_Instance instance)

Create() creates a PPB_PlatformVerification_Private object.

[in] instance A PP_Instance identifying one instance of a module.

Returns
A PP_Resource corresponding to a PPB_PlatformVerification_Private if successful, 0 if creation failed.
PP_Bool(* PPB_PlatformVerification_Private_0_2::IsPlatformVerification)(PP_Resource resource)

IsPlatformVerification() determines if the provided resource is a PPB_PlatformVerification_Private.

Parameters
[in]resourceA PP_Resource corresponding to a PPB_PlatformVerification_Private.
Returns
PP_TRUE if the resource is a PPB_PlatformVerification_Private, PP_FALSE if the resource is invalid or some type other than PPB_PlatformVerification_Private.

The documentation for this struct was generated from the following file: