Module: HrrRbSsh::Transport::MacAlgorithm::Unfunctionable

Includes:
Loggable
Included in:
None
Defined in:
lib/hrr_rb_ssh/transport/mac_algorithm/unfunctionable.rb

Instance Attribute Summary

Attributes included from Loggable

#log_key, #logger

Instance Method Summary collapse

Methods included from Loggable

#log_debug, #log_error, #log_fatal, #log_info, #log_warn

Instance Method Details

#compute(sequence_number, unencrypted_packet) ⇒ Object



24
25
26
# File 'lib/hrr_rb_ssh/transport/mac_algorithm/unfunctionable.rb', line 24

def compute sequence_number, unencrypted_packet
  String.new
end

#digest_lengthObject



16
17
18
# File 'lib/hrr_rb_ssh/transport/mac_algorithm/unfunctionable.rb', line 16

def digest_length
  self.class::DIGEST_LENGTH
end

#initialize(key = nil, logger: nil) ⇒ Object



12
13
14
# File 'lib/hrr_rb_ssh/transport/mac_algorithm/unfunctionable.rb', line 12

def initialize key=nil, logger: nil
  self.logger = logger
end

#key_lengthObject



20
21
22
# File 'lib/hrr_rb_ssh/transport/mac_algorithm/unfunctionable.rb', line 20

def key_length
  self.class::KEY_LENGTH
end