Lines Matching full:client

15         self.client = tpm2.Client()
16 self.root_key = self.client.create_root_key()
19 self.client.flush_context(self.root_key)
20 self.client.close()
26 blob = self.client.seal(self.root_key, data, auth, None)
27 result = self.client.unseal(self.root_key, blob, auth, None)
31 pcr_banks = self.client.get_cap_pcrs()
41 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
48 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
49 self.client.policy_password(handle)
51 policy_dig = self.client.get_policy_digest(handle)
53 self.client.flush_context(handle)
55 blob = self.client.seal(self.root_key, data, auth, policy_dig)
57 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
60 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
61 self.client.policy_password(handle)
63 result = self.client.unseal(self.root_key, blob, auth, handle)
65 self.client.flush_context(handle)
75 blob = self.client.seal(self.root_key, data, auth, None)
77 result = self.client.unseal(self.root_key, blob,
88 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
95 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
96 self.client.policy_password(handle)
98 policy_dig = self.client.get_policy_digest(handle)
100 self.client.flush_context(handle)
102 blob = self.client.seal(self.root_key, data, auth, policy_dig)
108 self.client.extend_pcr(1, ('X' * ds).encode(), bank_alg=bank_alg)
110 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
113 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
114 self.client.policy_password(handle)
116 result = self.client.unseal(self.root_key, blob, auth, handle)
118 self.client.flush_context(handle)
125 self.client.extend_pcr(16, ('X' * ds).encode(), bank_alg=bank_alg)
127 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
132 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg)
133 self.client.policy_password(handle)
135 result = self.client.unseal(self.root_key, blob, auth, handle)
138 self.client.flush_context(handle)
140 self.client.flush_context(handle)
152 blob = self.client.seal(self.root_key, data, auth, None)
168 self.client.send_cmd(cmd)
183 self.client.tpm.write(cmd)
184 hdr = self.client.tpm.read(10)
186 rsp = self.client.tpm.read()
200 self.client.tpm.write(cmd)
202 rsp1 = self.client.tpm.read(15)
205 self.client.tpm.write(cmd)
208 rsp2 = self.client.tpm.read()
223 self.client.tpm.write(cmd)
226 self.client.tpm.write(cmd)
227 rsp = self.client.tpm.read()
231 rsp = self.client.tpm.read()
246 space1 = tpm2.Client(tpm2.Client.FLAG_SPACE)
248 space2 = tpm2.Client(tpm2.Client.FLAG_SPACE)
260 space1 = tpm2.Client(tpm2.Client.FLAG_SPACE)
270 space1 = tpm2.Client(tpm2.Client.FLAG_SPACE)
272 space2 = tpm2.Client(tpm2.Client.FLAG_SPACE)
289 space1 = tpm2.Client(tpm2.Client.FLAG_SPACE)
314 async_client = tpm2.Client(tpm2.Client.FLAG_NONBLOCK)
323 async_client = tpm2.Client(tpm2.Client.FLAG_SPACE | tpm2.Client.FLAG_NONBLOCK)