Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 2 of 2) sorted by relevance

/tools/testing/selftests/tpm2/
Dtpm2_tests.py26 blob = self.client.seal(self.root_key, data, auth, None)
27 result = self.client.unseal(self.root_key, blob, auth, None)
45 blob = self.client.seal(self.root_key, data, auth, policy_dig)
53 result = self.client.unseal(self.root_key, blob, auth, handle)
65 blob = self.client.seal(self.root_key, data, auth, None)
67 result = self.client.unseal(self.root_key, blob, auth[:-1] + 'B', None)
88 blob = self.client.seal(self.root_key, data, auth, policy_dig)
102 result = self.client.unseal(self.root_key, blob, auth, handle)
121 result = self.client.unseal(self.root_key, blob, auth, handle)
138 blob = self.client.seal(self.root_key, data, auth, None)
Dtpm2.py607 def unseal(self, parent_key, blob, auth_value, policy_handle): argument
608 private_len = struct.unpack('>H', blob[0:2])[0]
610 public_len = struct.unpack('>H', blob[public_start:public_start + 2])[0]
611 blob = blob[:private_len + public_len + 4]
615 fmt = '>HII I I%us %us' % (len(auth_cmd), len(blob))
624 blob)