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).
Methods
Public Instance methods
A default block size of 8 is required by the SSH2 protocol.
[ show source ]
# File lib/net/ssh/transport/identity-cipher.rb, line 28
28: def block_size
29: 8
30: end
Does nothing. Returns self.
[ show source ]
# File lib/net/ssh/transport/identity-cipher.rb, line 38
38: def decrypt
39: self
40: end
Does nothing. Returns self.
[ show source ]
# File lib/net/ssh/transport/identity-cipher.rb, line 33
33: def encrypt
34: self
35: end
Returns the empty string.
[ show source ]
# File lib/net/ssh/transport/identity-cipher.rb, line 48
48: def final
49: ""
50: end
The name of this cipher, which is "identity".
[ show source ]
# File lib/net/ssh/transport/identity-cipher.rb, line 53
53: def name
54: "identity"
55: end
Passes its single argument through unchanged.
[ show source ]
# File lib/net/ssh/transport/identity-cipher.rb, line 43
43: def update( text )
44: text
45: end