| Class | Net::SSH::Transport::IdentityCipher |
| In: |
lib/net/ssh/transport/identity-cipher.rb
|
| Parent: | Object |
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).
A default block size of 8 is required by the SSH2 protocol.
# File lib/net/ssh/transport/identity-cipher.rb, line 28
28: def block_size
29: 8
30: end
Does nothing. Returns self.
# File lib/net/ssh/transport/identity-cipher.rb, line 38
38: def decrypt
39: self
40: end
Does nothing. Returns self.
# File lib/net/ssh/transport/identity-cipher.rb, line 33
33: def encrypt
34: self
35: end
Returns the empty string.
# File lib/net/ssh/transport/identity-cipher.rb, line 48
48: def final
49: ""
50: end
The name of this cipher, which is "identity".
# File lib/net/ssh/transport/identity-cipher.rb, line 53
53: def name
54: "identity"
55: end