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 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
38 self.client.policy_pcr(handle, pcrs)
39 self.client.policy_password(handle)
41 policy_dig = self.client.get_policy_digest(handle)
43 self.client.flush_context(handle)
45 blob = self.client.seal(self.root_key, data, auth, policy_dig)
47 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
50 self.client.policy_pcr(handle, pcrs)
51 self.client.policy_password(handle)
53 result = self.client.unseal(self.root_key, blob, auth, handle)
55 self.client.flush_context(handle)
65 blob = self.client.seal(self.root_key, data, auth, None)
67 result = self.client.unseal(self.root_key, blob,
75 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
82 self.client.policy_pcr(handle, pcrs)
83 self.client.policy_password(handle)
85 policy_dig = self.client.get_policy_digest(handle)
87 self.client.flush_context(handle)
89 blob = self.client.seal(self.root_key, data, auth, policy_dig)
95 self.client.extend_pcr(1, ('X' * ds).encode())
97 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
100 self.client.policy_pcr(handle, pcrs)
101 self.client.policy_password(handle)
103 result = self.client.unseal(self.root_key, blob, auth, handle)
105 self.client.flush_context(handle)
112 self.client.extend_pcr(16, ('X' * ds).encode())
114 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
119 self.client.policy_pcr(handle, pcrs)
120 self.client.policy_password(handle)
122 result = self.client.unseal(self.root_key, blob, auth, handle)
125 self.client.flush_context(handle)
127 self.client.flush_context(handle)
139 blob = self.client.seal(self.root_key, data, auth, None)
155 self.client.send_cmd(cmd)
170 self.client.tpm.write(cmd)
171 hdr = self.client.tpm.read(10)
173 rsp = self.client.tpm.read()
187 self.client.tpm.write(cmd)
189 rsp1 = self.client.tpm.read(15)
192 self.client.tpm.write(cmd)
195 rsp2 = self.client.tpm.read()
210 self.client.tpm.write(cmd)
213 self.client.tpm.write(cmd)
214 rsp = self.client.tpm.read()
218 rsp = self.client.tpm.read()
233 space1 = tpm2.Client(tpm2.Client.FLAG_SPACE)
235 space2 = tpm2.Client(tpm2.Client.FLAG_SPACE)
247 space1 = tpm2.Client(tpm2.Client.FLAG_SPACE)
257 space1 = tpm2.Client(tpm2.Client.FLAG_SPACE)
259 space2 = tpm2.Client(tpm2.Client.FLAG_SPACE)
276 space1 = tpm2.Client(tpm2.Client.FLAG_SPACE)
301 async_client = tpm2.Client(tpm2.Client.FLAG_NONBLOCK)