Pepper_47_C_interfaces
|
#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) |
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.
Definition at line 42 of file ppb_platform_verification_private.h.
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.
[in] | service_id | A PP_Var of type PP_VARTYPE_STRING containing the service_id for the challenge. |
[in] | challenge | A PP_Var of type PP_VARTYPE_ARRAY_BUFFER that contains the challenge data. |
[out] | signed_data | A PP_Var of type PP_VARTYPE_ARRAY_BUFFER that contains the data signed by the platform. |
[out] | signed_data_signature | A PP_Var of type PP_VARTYPE_ARRAY_BUFFER that contains the signature of the signed data block. |
[out] | platform_key_certificate | A PP_Var of type PP_VARTYPE_STRING that contains the device specific certificate for the requested service_id. |
[in] | callback | A 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 . |
pp_errors.h
. Definition at line 94 of file ppb_platform_verification_private.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.
PP_Resource
corresponding to a PPB_PlatformVerification_Private
if successful, 0 if creation failed. Definition at line 53 of file ppb_platform_verification_private.h.
PP_Bool(* PPB_PlatformVerification_Private_0_2::IsPlatformVerification)(PP_Resource resource) |
IsPlatformVerification() determines if the provided resource is a PPB_PlatformVerification_Private
.
[in] | resource | A PP_Resource corresponding to a PPB_PlatformVerification_Private . |
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
. Definition at line 66 of file ppb_platform_verification_private.h.