module HrrRbSsh::Transport::EncryptionAlgorithm::Unfunctionable

Public Class Methods

included(klass) click to toggle source
# File lib/hrr_rb_ssh/transport/encryption_algorithm/unfunctionable.rb, line 12
def self.included klass
  klass.const_set(:IV_LENGTH,  0)
  klass.const_set(:KEY_LENGTH, 0)
end
new(direction=nil, iv=nil, key=nil, logger: nil) click to toggle source
# File lib/hrr_rb_ssh/transport/encryption_algorithm/unfunctionable.rb, line 17
def initialize direction=nil, iv=nil, key=nil, logger: nil
  self.logger = logger
end

Public Instance Methods

block_size() click to toggle source
# File lib/hrr_rb_ssh/transport/encryption_algorithm/unfunctionable.rb, line 21
def block_size
  self.class::BLOCK_SIZE
end
decrypt(data) click to toggle source
# File lib/hrr_rb_ssh/transport/encryption_algorithm/unfunctionable.rb, line 37
def decrypt data
  data
end
encrypt(data) click to toggle source
# File lib/hrr_rb_ssh/transport/encryption_algorithm/unfunctionable.rb, line 33
def encrypt data
  data
end
iv_length() click to toggle source
# File lib/hrr_rb_ssh/transport/encryption_algorithm/unfunctionable.rb, line 25
def iv_length
  self.class::IV_LENGTH
end
key_length() click to toggle source
# File lib/hrr_rb_ssh/transport/encryption_algorithm/unfunctionable.rb, line 29
def key_length
  self.class::KEY_LENGTH
end