Class: Net::SSH::Transport::IdentityCipher
- Inherits:
-
Object
- Object
- Net::SSH::Transport::IdentityCipher
- Defined in:
- lib/net/ssh/transport/identity_cipher.rb
Overview
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).
Class Method Summary collapse
-
.block_size ⇒ Object
A default block size of 8 is required by the SSH2 protocol.
-
.decrypt ⇒ Object
Does nothing.
-
.encrypt ⇒ Object
Does nothing.
-
.final ⇒ Object
Returns the empty string.
- .implicit_mac? ⇒ Boolean
-
.iv=(v) ⇒ Object
Does nothing.
-
.iv_len ⇒ Object
Returns an arbitrary integer.
- .key_length ⇒ Object
-
.name ⇒ Object
The name of this cipher, which is “identity”.
-
.reset ⇒ Object
Does nothing.
-
.update(text) ⇒ Object
Passes its single argument through unchanged.
Class Method Details
.block_size ⇒ Object
A default block size of 8 is required by the SSH2 protocol.
10 11 12 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 10 def block_size 8 end |
.decrypt ⇒ Object
Does nothing. Returns self.
29 30 31 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 29 def decrypt self end |
.encrypt ⇒ Object
Does nothing. Returns self.
24 25 26 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 24 def encrypt self end |
.final ⇒ Object
Returns the empty string.
39 40 41 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 39 def final "" end |
.implicit_mac? ⇒ Boolean
58 59 60 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 58 def implicit_mac? false end |
.iv=(v) ⇒ Object
Does nothing. Returns nil.
49 50 51 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 49 def iv=(v) nil end |
.iv_len ⇒ Object
Returns an arbitrary integer.
19 20 21 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 19 def iv_len 4 end |
.key_length ⇒ Object
14 15 16 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 14 def key_length 0 end |
.name ⇒ Object
The name of this cipher, which is “identity”.
44 45 46 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 44 def name "identity" end |
.reset ⇒ Object
Does nothing. Returns self.
54 55 56 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 54 def reset self end |
.update(text) ⇒ Object
Passes its single argument through unchanged.
34 35 36 |
# File 'lib/net/ssh/transport/identity_cipher.rb', line 34 def update(text) text end |