Lines Matching refs:client
20 def __check_pinweaver_client_present(client, message): argument
22 run = client.run('which pinweaver_client', ignore_status=True)
26 def __execute_for_dict(client, *args, **kwargs): argument
30 __check_pinweaver_client_present(client, args[0])
36 run = client.run(*args, **kwargs)
45 def ResetTree(client, bits_per_level, height): argument
50 return __execute_for_dict(client, 'pinweaver_client resettree %d %d' %
54 def InsertLeaf(client, label, auxilary_hashes, low_entropy_secret, argument
62 client, 'pinweaver_client insert %d %s %s %s %s %s' %
67 def RemoveLeaf(client, label, auxilary_hashes, mac): argument
73 client, 'pinweaver_client remove %d %s %s' %
77 def TryAuth(client, auxilary_hashes, low_entropy_secret, cred_metadata): argument
84 client, 'pinweaver_client auth %s %s %s' %
88 def ResetAuth(client, auxilary_hashes, reset_secret, cred_metadata): argument
95 client, 'pinweaver_client resetleaf %s %s %s' %
99 def GetLog(client, root=None): argument
109 return __execute_for_dict(client, 'pinweaver_client getlog %s' % (root))
112 def LogReplay(client, auxilary_hashes, log_root, cred_metadata): argument
119 client, 'pinweaver_client replay %d %s %s %s' %
123 def SelfTest(client): argument
129 __check_pinweaver_client_present(client, cmd)
131 run = client.run(cmd)