Sha256: 00b1e50acd62db939ad5adbc1804efeeded3a3a02267b3771912039b54992235

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module Noise
  module Connection
    class Responder < Base
      def initialize_next_message
        @next_message = :read
      end

      def initiator?
        false
      end

      def handshake_done(c1, c2)
        super
        @cipher_state_decrypt = c1
        @cipher_state_encrypt = @protocol.pattern.one_way? ? nil : c2
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
noise-ruby-0.10.1 lib/noise/connection/responder.rb
noise-ruby-0.10.0 lib/noise/connection/responder.rb
noise-ruby-0.9.4 lib/noise/connection/responder.rb
noise-ruby-0.8.4 lib/noise/connection/responder.rb