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
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 10 def block_size 8 end
A default block size of 8 is required by the SSH2 protocol.
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 29 def decrypt self end
Does nothing. Returns self.
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 24 def encrypt self end
Does nothing. Returns self.
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 39 def final "" end
Returns the empty string.
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 58 def implicit_mac? false end
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 49 def iv=(v) nil end
Does nothing. Returns nil.
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 19 def iv_len 4 end
Returns an arbitrary integer.
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 44 def name "identity" end
The name of this cipher, which is “identity”.
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 54 def reset self end
Does nothing. Returns self.
Source
# File lib/net/ssh/transport/identity_cipher.rb, line 34 def update(text) text end
Passes its single argument through unchanged.