Sha256: dde6b02a6dcf60f85945dd34981d87ef5bcaa4aeb519168088af4986919124f8
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
# frozen_string_literal: true module Noise module Connection class Initiator < Base def initialize(name, keypairs: { s: nil, e: nil, rs: nil, re: nil }) super @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 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
noise-ruby-0.7.4 | lib/noise/connection/initiator.rb |
noise-ruby-0.7.3 | lib/noise/connection/initiator.rb |