class Net::SSH::Transport::Kex::DiffieHellmanGroup1SHA1

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)
  unless result[:server_key].ssh_do_verify(result[:server_sig], hash)
    raise Net::SSH::Exception, "could not verify server signature"
  end
  return hash
end