|
Android-cuttlefish cvd tool
|
#include <tpm_remote_provisioning_context.h>


Public Member Functions | |
| TpmRemoteProvisioningContext (TpmResourceManager &resource_manager) | |
| ~TpmRemoteProvisioningContext () override=default | |
| std::vector< uint8_t > | DeriveBytesFromHbk (const std::string &context, size_t numBytes) const override |
| std::unique_ptr< cppbor::Map > | CreateDeviceInfo (uint32_t csrVersion) const override |
| cppcose::ErrMsgOr< std::vector< uint8_t > > | BuildProtectedDataPayload (bool isTestMode, const std::vector< uint8_t > &macKey, const std::vector< uint8_t > &aad) const override |
| std::optional< cppcose::HmacSha256 > | GenerateHmacSha256 (const cppcose::bytevec &input) const override |
| void | GetHwInfo (keymaster::GetHwInfoResponse *hwInfo) const override |
| cppcose::ErrMsgOr< cppbor::Array > | BuildCsr (const std::vector< uint8_t > &challenge, cppbor::Array keysToSign) const override |
| std::pair< std::vector< uint8_t >, cppbor::Array > | GenerateBcc (bool testMode) const |
| void | SetSystemVersion (uint32_t os_version, uint32_t os_patchlevel) |
| void | SetVendorPatchlevel (uint32_t vendor_patchlevel) |
| void | SetBootPatchlevel (uint32_t boot_patchlevel) |
| void | SetVerifiedBootInfo (std::string_view boot_state, std::string_view bootloader_state, const std::vector< uint8_t > &vbmeta_digest) |
Private Attributes | |
| std::vector< uint8_t > | devicePrivKey_ |
| cppbor::Array | bcc_ |
| TpmResourceManager & | resource_manager_ |
| std::optional< uint32_t > | os_version_ |
| std::optional< uint32_t > | os_patchlevel_ |
| std::optional< uint32_t > | vendor_patchlevel_ |
| std::optional< uint32_t > | boot_patchlevel_ |
| std::optional< std::string > | verified_boot_state_ |
| std::optional< std::string > | bootloader_state_ |
| std::optional< std::vector< uint8_t > > | vbmeta_digest_ |
TPM-backed implementation of the provisioning context.
| cuttlefish::TpmRemoteProvisioningContext::TpmRemoteProvisioningContext | ( | TpmResourceManager & | resource_manager | ) |
|
overridedefault |
|
override |
|
override |
|
override |
|
override |
| std::pair< std::vector< uint8_t >, cppbor::Array > cuttlefish::TpmRemoteProvisioningContext::GenerateBcc | ( | bool | testMode | ) | const |
|
override |
|
override |
| void cuttlefish::TpmRemoteProvisioningContext::SetBootPatchlevel | ( | uint32_t | boot_patchlevel | ) |
| void cuttlefish::TpmRemoteProvisioningContext::SetSystemVersion | ( | uint32_t | os_version, |
| uint32_t | os_patchlevel | ||
| ) |
| void cuttlefish::TpmRemoteProvisioningContext::SetVendorPatchlevel | ( | uint32_t | vendor_patchlevel | ) |
| void cuttlefish::TpmRemoteProvisioningContext::SetVerifiedBootInfo | ( | std::string_view | boot_state, |
| std::string_view | bootloader_state, | ||
| const std::vector< uint8_t > & | vbmeta_digest | ||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |