class Net::SSH::Transport::Kex::Abstract

def verify_signature(result) # :nodoc:

:nodoc:
session-id.
if the signature could not be verified. Otherwise, return the new
Verify the signature that was received. Raise Net::SSH::Exception
def verify_signature(result) # :nodoc:
  response = build_signature_buffer(result)
  hash = digester.digest(response.to_s)
  server_key = result[:server_key]
  server_sig = result[:server_sig]
  unless connection.host_key_verifier.verify_signature { server_key.ssh_do_verify(server_sig, hash, host_key: algorithms.host_key) }
    raise Net::SSH::Exception, 'could not verify server signature'
  end
  hash
end