lib/noise/connection/initiator.rb in noise-ruby-0.7.4 vs lib/noise/connection/initiator.rb in noise-ruby-0.8.4

- old
+ new

@@ -1,22 +1,21 @@ # frozen_string_literal: true module Noise module Connection class Initiator < Base - def initialize(name, keypairs: { s: nil, e: nil, rs: nil, re: nil }) - super + def initialize_next_message @next_message = :write end def initiator? true end def handshake_done(c1, c2) super @cipher_state_encrypt = c1 - @cipher_state_decrypt = @protocol.pattern.one_way ? nil : c2 + @cipher_state_decrypt = @protocol.pattern.one_way? ? nil : c2 end end end end