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

Methods

block_size   decrypt   encrypt   final   name   update  

Public Instance methods

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

[Source]

    # File lib/net/ssh/transport/identity-cipher.rb, line 28
28:         def block_size
29:           8
30:         end

Does nothing. Returns self.

[Source]

    # File lib/net/ssh/transport/identity-cipher.rb, line 38
38:         def decrypt
39:           self
40:         end

Does nothing. Returns self.

[Source]

    # File lib/net/ssh/transport/identity-cipher.rb, line 33
33:         def encrypt
34:           self
35:         end

Returns the empty string.

[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".

[Source]

    # File lib/net/ssh/transport/identity-cipher.rb, line 53
53:         def name
54:           "identity"
55:         end

Passes its single argument through unchanged.

[Source]

    # File lib/net/ssh/transport/identity-cipher.rb, line 43
43:         def update( text )
44:           text
45:         end

[Validate]