class Net::SSH::Transport::IdentityCipher

  1. lib/net/ssh/transport/identity_cipher.rb
Parent: Transport

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 ()

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

[show source]
# File lib/net/ssh/transport/identity_cipher.rb, line 9
def block_size
  8
end
decrypt ()

Does nothing. Returns self.

[show source]
# File lib/net/ssh/transport/identity_cipher.rb, line 24
def decrypt
  self
end
encrypt ()

Does nothing. Returns self.

[show source]
# File lib/net/ssh/transport/identity_cipher.rb, line 19
def encrypt
  self
end
final ()

Returns the empty string.

[show source]
# File lib/net/ssh/transport/identity_cipher.rb, line 34
def final
  ""
end
iv= (v)

Does nothing. Returns nil.

[show source]
# File lib/net/ssh/transport/identity_cipher.rb, line 44
def iv=(v)
  nil
end
iv_len ()

Returns an arbitrary integer.

[show source]
# File lib/net/ssh/transport/identity_cipher.rb, line 14
def iv_len
  4
end
name ()

The name of this cipher, which is "identity".

[show source]
# File lib/net/ssh/transport/identity_cipher.rb, line 39
def name
  "identity"
end
reset ()

Does nothing. Returns self.

[show source]
# File lib/net/ssh/transport/identity_cipher.rb, line 49
def reset
  self
end
update (text)

Passes its single argument through unchanged.

[show source]
# File lib/net/ssh/transport/identity_cipher.rb, line 29
def update(text)
  text
end