Class Net::SSH::Transport::IdentityCipher
In: lib/net/ssh/transport/identity_cipher.rb
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   block_size   decrypt   decrypt   encrypt   encrypt   final   final   name   name   update   update  

Public Class methods

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

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 9
 9:       def block_size
10:         8
11:       end

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

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 9
 9:       def block_size
10:         8
11:       end

Does nothing. Returns self.

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 19
19:       def decrypt
20:         self
21:       end

Does nothing. Returns self.

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 19
19:       def decrypt
20:         self
21:       end

Does nothing. Returns self.

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 14
14:       def encrypt
15:         self
16:       end

Does nothing. Returns self.

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 14
14:       def encrypt
15:         self
16:       end

Returns the empty string.

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 29
29:       def final
30:         ""
31:       end

Returns the empty string.

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 29
29:       def final
30:         ""
31:       end

The name of this cipher, which is "identity".

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 34
34:       def name
35:         "identity"
36:       end

The name of this cipher, which is "identity".

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 34
34:       def name
35:         "identity"
36:       end

Passes its single argument through unchanged.

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 24
24:       def update(text)
25:         text
26:       end

Passes its single argument through unchanged.

[Source]

    # File lib/net/ssh/transport/identity_cipher.rb, line 24
24:       def update(text)
25:         text
26:       end

[Validate]