Class: Noise::Connection::Responder
- Defined in:
- lib/noise/connection/responder.rb
Instance Attribute Summary
Attributes inherited from Base
#cipher_state_decrypt, #cipher_state_encrypt, #cipher_state_handshake, #handshake_finished, #handshake_hash, #handshake_started, #handshake_state, #prologue, #protocol, #psks, #rs, #s
Instance Method Summary collapse
Methods inherited from Base
#decrypt, #encrypt, #fallback, #initialise_handshake_state, #initialize, #psk_handshake?, #read_message, #start_handshake, #valid_keypairs?, #validate, #validate_psk!, #write_message
Constructor Details
This class inherits a constructor from Noise::Connection::Base
Instance Method Details
#handshake_done(c1, c2) ⇒ Object
14 15 16 17 18 |
# File 'lib/noise/connection/responder.rb', line 14 def handshake_done(c1, c2) super @cipher_state_decrypt = c1 @cipher_state_encrypt = @protocol.pattern.one_way? ? nil : c2 end |
#initialize_next_message ⇒ Object
6 7 8 |
# File 'lib/noise/connection/responder.rb', line 6 def @next_message = :read end |
#initiator? ⇒ Boolean
10 11 12 |
# File 'lib/noise/connection/responder.rb', line 10 def initiator? false end |