#NEWLINE# def _exchange_key_with_agent( self ) : #NEWLINE# #INDENT# dh = SimpleDH ( ) #NEWLINE# args = { #NEWLINE# #INDENT# 'pub' : str ( dh . get_public ( ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# resp = self . _call_agent ( 'key_init' , dh , success_codes = [ 'D0' ] , ignore_errors = False ) #NEWLINE# agent_pub = int ( resp ) #NEWLINE# dh . compute_shared ( agent_pub ) #NEWLINE# return dh