# File lib/net/ssh/test/kex.rb, line 27
27:     def exchange_keys
28:       result = Net::SSH::Buffer.from(:byte, NEWKEYS)
29:       @connection.send_message(result)
30: 
31:       buffer = @connection.next_message
32:       raise Net::SSH::Exception, "expected NEWKEYS" unless buffer.type == NEWKEYS
33: 
34:       { :session_id        => "abc-xyz",
35:         :server_key        => OpenSSL::PKey::RSA.new(32),
36:         :shared_secret     => OpenSSL::BN.new("1234567890", 10),
37:         :hashing_algorithm => OpenSSL::Digest::SHA1 }
38:     end