class Net::SSH::Transport::IdentityCipher

A cipher that does nothing but pass the data through, unchanged. This keeps things in the code nice and clean when a cipher has not yet been determined (i.e., during key exchange).

Public Class Methods

block_size() click to toggle source

A default block size of 8 is required by the SSH2 protocol.

# File lib/net/ssh/transport/identity_cipher.rb, line 11
def block_size
  8
end
decrypt() click to toggle source

Does nothing. Returns self.

# File lib/net/ssh/transport/identity_cipher.rb, line 26
def decrypt
  self
end
encrypt() click to toggle source

Does nothing. Returns self.

# File lib/net/ssh/transport/identity_cipher.rb, line 21
def encrypt
  self
end
final() click to toggle source

Returns the empty string.

# File lib/net/ssh/transport/identity_cipher.rb, line 36
def final
  ""
end
iv=(v) click to toggle source

Does nothing. Returns nil.

# File lib/net/ssh/transport/identity_cipher.rb, line 46
def iv=(v)
  nil
end
iv_len() click to toggle source

Returns an arbitrary integer.

# File lib/net/ssh/transport/identity_cipher.rb, line 16
def iv_len
  4
end
name() click to toggle source

The name of this cipher, which is “identity”.

# File lib/net/ssh/transport/identity_cipher.rb, line 41
def name
  "identity"
end
reset() click to toggle source

Does nothing. Returns self.

# File lib/net/ssh/transport/identity_cipher.rb, line 51
def reset
  self
end
update(text) click to toggle source

Passes its single argument through unchanged.

# File lib/net/ssh/transport/identity_cipher.rb, line 31
def update(text)
  text
end