Home
last modified time | relevance | path

Searched refs:resource_manager_ (Results 1 – 20 of 20) sorted by relevance

/device/google/cuttlefish/host/commands/secure_env/storage/
Dtpm_storage.cpp34 : resource_manager_(resource_manager), index_file_(index_file) { in TpmStorage()
35 index_ = ReadProtectedJsonFromFile(resource_manager_, index_file); in TpmStorage()
50 return ReadProtectedJsonFromFile(resource_manager_, index_file_).isMember(kEntries); in Exists()
61 Esys_TR_Close(*resource_manager_.Esys(), handle); in Read()
66 /* esysContext */ *resource_manager_.Esys(), in Read()
76 Esys_TR_SetAuth(*resource_manager_.Esys(), *nv_handle, &auth); in Read()
80 /* esysContext */ *resource_manager_.Esys(), in Read()
93 /* esysContext */ *resource_manager_.Esys(), in Read()
119 /* esysContext */ *resource_manager_.Esys(), in Write()
129 Esys_TR_SetAuth(*resource_manager_.Esys(), nv_handle, &auth); in Write()
[all …]
Dtpm_storage.h62 TpmResourceManager& resource_manager_; variable
/device/google/cuttlefish/host/commands/secure_env/
Dencrypted_serializable.cpp33 resource_manager_(resource_manager), in EncryptedSerializable()
162 auto parent = parent_key_fn_(resource_manager_); in SerializedSize()
164 resource_manager_, parent->get(), &key_public, &key_private, nullptr)) { in SerializedSize()
186 auto parent = parent_key_fn_(resource_manager_); in Serialize()
193 resource_manager_, parent->get(), &key_public, &key_private, &key_slot)) { in Serialize()
200 auto rc = TpmRandomSource(resource_manager_) in Serialize()
219 *resource_manager_.Esys(), key_slot->get(), TpmAuth(ESYS_TR_PASSWORD), in Serialize()
239 auto parent_key = parent_key_fn_(resource_manager_); in Deserialize()
257 LoadKey(resource_manager_, parent_key->get(), &key_public, &key_private); in Deserialize()
302 *resource_manager_.Esys(), key_slot->get(), TpmAuth(ESYS_TR_PASSWORD), in Deserialize()
Dtpm_random_source.cpp26 : resource_manager_(resource_manager) {} in TpmRandomSource()
37 Esys_GetRandom(*resource_manager_.Esys(), ESYS_TR_NONE, ESYS_TR_NONE, in GenerateRandom()
51 Esys_GetRandom(*resource_manager_.Esys(), ESYS_TR_NONE, ESYS_TR_NONE, in GenerateRandom()
80 auto rc = Esys_StirRandom(*resource_manager_.Esys(), ESYS_TR_NONE, in AddRngEntropy()
92 auto rc = Esys_StirRandom(*resource_manager_.Esys(), ESYS_TR_NONE, in AddRngEntropy()
Dhmac_serializable.cpp31 : resource_manager_(resource_manager), in HmacSerializable()
52 auto key = signing_key_fn_(resource_manager_); in Serialize()
62 TpmHmac(resource_manager_, key->get(), TpmAuth(ESYS_TR_PASSWORD), in Serialize()
100 auto key = signing_key_fn_(resource_manager_); in Deserialize()
110 TpmHmac(resource_manager_, key->get(), TpmAuth(ESYS_TR_PASSWORD), in Deserialize()
Dtpm_keymaster_enforcement.cpp97 resource_manager_(resource_manager), in TpmKeymasterEnforcement()
179 TpmRandomSource random_source{resource_manager_}; in GetHmacSharingParameters()
227 auto hmac = TpmHmacWithContext(resource_manager_, in ComputeSharedHmac()
258 auto hmac = TpmHmacWithContext(resource_manager_, "verify_authorization", in VerifyAuthorization()
284 TpmHmacWithContext(resource_manager_, "timestamp_token", in GenerateTimestampToken()
320 TpmHmacWithContext(resource_manager_, "key_id", key_blob.key_material, in CreateKeyId()
Dtpm_key_blob_maker.cpp180 : resource_manager_(resource_manager) { in TpmKeyBlobMaker()
226 resource_manager_, parent_key_fn, sensitive_material); in UnvalidatedCreateKeyBlob()
232 HmacSerializable sign_check(resource_manager_, signing_key_fn, in UnvalidatedCreateKeyBlob()
253 resource_manager_, parent_key_fn, sensitive_material); in UnwrapKeyBlob()
255 HmacSerializable sign_check(resource_manager_, signing_key_fn, in UnwrapKeyBlob()
Dtpm_resource_manager.cpp35 : resource_manager_(resource_manager), resource_(resource) { in ObjectSlot()
42 auto rc = Esys_FlushContext(resource_manager_->esys_, resource_); in ~ObjectSlot()
50 resource_manager_->used_slots_--; in ~ObjectSlot()
Dtpm_keymaster_context.cpp80 : resource_manager_(resource_manager), in TpmKeymasterContext()
82 key_blob_maker_(new TpmKeyBlobMaker(resource_manager_)), in TpmKeymasterContext()
83 random_source_(new TpmRandomSource(resource_manager_)), in TpmKeymasterContext()
86 new TpmRemoteProvisioningContext(resource_manager_)) { in TpmKeymasterContext()
579 auto hmac = TpmHmacWithContext(resource_manager_, "confirmation_token", in CheckConfirmationToken()
Dtpm_gatekeeper.cpp41 : resource_manager_(resource_manager) in TpmGatekeeper()
88 TpmRandomSource(resource_manager_) in GetRandom()
103 TpmHmacWithContext(resource_manager_, key_unique, message, length); in ComputeSignature()
Dtpm_remote_provisioning_context.cpp40 : resource_manager_(resource_manager) { in TpmRemoteProvisioningContext()
48 resource_manager_, "HardwareBoundKey", in DeriveBytesFromHbk()
205 TpmHmacWithContext(resource_manager_, "Public Key Authentication Key", in GenerateHmacSha256()
Dtpm_random_source.h40 TpmResourceManager& resource_manager_;
Dencrypted_serializable.h58 TpmResourceManager& resource_manager_;
Dhmac_serializable.h55 TpmResourceManager& resource_manager_;
Dtpm_resource_manager.h63 TpmResourceManager* resource_manager_; variable
Dtpm_key_blob_maker.h76 TpmResourceManager& resource_manager_;
Dtpm_keymaster_enforcement.h64 TpmResourceManager& resource_manager_;
Dtpm_gatekeeper.h83 TpmResourceManager& resource_manager_;
Dtpm_remote_provisioning_context.h61 TpmResourceManager& resource_manager_; variable
Dtpm_keymaster_context.h42 TpmResourceManager& resource_manager_;