hrr_rb_ssh 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -2
  3. data/README.md +11 -9
  4. data/demo/echo_server.rb +50 -42
  5. data/demo/server.rb +81 -62
  6. data/demo/subsystem_echo_server.rb +54 -47
  7. data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm/ecdsa_sha2_nistp521 → algorithm/publickey/ecdsa_sha2}/ecdsa_signature_blob.rb +3 -3
  8. data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm/ecdsa_sha2_nistp256 → algorithm/publickey/ecdsa_sha2}/public_key_blob.rb +5 -6
  9. data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm/ecdsa_sha2_nistp256 → algorithm/publickey/ecdsa_sha2}/signature.rb +5 -5
  10. data/lib/hrr_rb_ssh/algorithm/publickey/ecdsa_sha2.rb +85 -0
  11. data/lib/hrr_rb_ssh/algorithm/publickey/ecdsa_sha2_nistp256.rb +19 -0
  12. data/lib/hrr_rb_ssh/algorithm/publickey/ecdsa_sha2_nistp384.rb +19 -0
  13. data/lib/hrr_rb_ssh/algorithm/publickey/ecdsa_sha2_nistp521.rb +19 -0
  14. data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm → algorithm/publickey}/ssh_dss/public_key_blob.rb +3 -3
  15. data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm → algorithm/publickey}/ssh_dss/signature.rb +4 -4
  16. data/lib/hrr_rb_ssh/algorithm/publickey/ssh_dss.rb +90 -0
  17. data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm → algorithm/publickey}/ssh_rsa/public_key_blob.rb +3 -4
  18. data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm → algorithm/publickey}/ssh_rsa/signature.rb +4 -4
  19. data/lib/hrr_rb_ssh/algorithm/publickey/ssh_rsa.rb +67 -0
  20. data/lib/hrr_rb_ssh/algorithm/publickey.rb +32 -0
  21. data/lib/hrr_rb_ssh/algorithm.rb +9 -0
  22. data/lib/hrr_rb_ssh/authentication/method/none/context.rb +1 -1
  23. data/lib/hrr_rb_ssh/authentication/method/none.rb +1 -1
  24. data/lib/hrr_rb_ssh/authentication/method/password/context.rb +1 -1
  25. data/lib/hrr_rb_ssh/authentication/method/password.rb +1 -1
  26. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256.rb +2 -65
  27. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384.rb +2 -65
  28. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521.rb +2 -65
  29. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/functionable.rb +54 -0
  30. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/signature_blob.rb +31 -0
  31. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_dss.rb +2 -73
  32. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_rsa.rb +2 -55
  33. data/lib/hrr_rb_ssh/authentication/method/publickey.rb +3 -3
  34. data/lib/hrr_rb_ssh/authentication.rb +15 -15
  35. data/lib/hrr_rb_ssh/codable.rb +1 -1
  36. data/lib/hrr_rb_ssh/compat/openssh/public_key.rb +3 -40
  37. data/lib/hrr_rb_ssh/compat/ruby/array.rb +14 -0
  38. data/lib/hrr_rb_ssh/compat/ruby/openssl/bn.rb +20 -0
  39. data/lib/hrr_rb_ssh/compat/ruby/openssl.rb +4 -0
  40. data/lib/hrr_rb_ssh/compat/ruby/queue.rb +38 -0
  41. data/lib/hrr_rb_ssh/compat/ruby.rb +6 -0
  42. data/lib/hrr_rb_ssh/compat.rb +1 -63
  43. data/lib/hrr_rb_ssh/connection/channel/channel_type/direct_tcpip.rb +1 -1
  44. data/lib/hrr_rb_ssh/connection/channel/channel_type/forwarded_tcpip.rb +1 -1
  45. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/proc_chain/chain_context.rb +1 -1
  46. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/proc_chain.rb +1 -1
  47. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb +1 -1
  48. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env.rb +1 -1
  49. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/exec/context.rb +1 -1
  50. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/exec.rb +1 -1
  51. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/pty_req/context.rb +1 -1
  52. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/pty_req.rb +1 -1
  53. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/shell/context.rb +1 -1
  54. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/shell.rb +1 -1
  55. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/subsystem/context.rb +1 -1
  56. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/subsystem.rb +1 -1
  57. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change/context.rb +1 -1
  58. data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change.rb +1 -1
  59. data/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb +1 -1
  60. data/lib/hrr_rb_ssh/connection/channel.rb +22 -22
  61. data/lib/hrr_rb_ssh/connection/global_request_handler.rb +1 -1
  62. data/lib/hrr_rb_ssh/connection/request_handler/reference_env_request_handler.rb +1 -1
  63. data/lib/hrr_rb_ssh/connection/request_handler/reference_exec_request_handler.rb +3 -56
  64. data/lib/hrr_rb_ssh/connection/request_handler/reference_pty_req_request_handler.rb +50 -13
  65. data/lib/hrr_rb_ssh/connection/request_handler/reference_shell_request_handler.rb +3 -56
  66. data/lib/hrr_rb_ssh/connection/request_handler/reference_window_change_request_handler.rb +1 -1
  67. data/lib/hrr_rb_ssh/connection/request_handler.rb +1 -1
  68. data/lib/hrr_rb_ssh/connection.rb +40 -40
  69. data/lib/hrr_rb_ssh/data_type.rb +0 -3
  70. data/lib/hrr_rb_ssh/error/closed_authentication.rb +9 -0
  71. data/lib/hrr_rb_ssh/{closed_transport_error.rb → error/closed_connection.rb} +3 -1
  72. data/lib/hrr_rb_ssh/{closed_authentication_error.rb → error/closed_transport.rb} +3 -1
  73. data/lib/hrr_rb_ssh/error.rb +11 -0
  74. data/lib/hrr_rb_ssh/{closed_connection_error.rb → mode.rb} +3 -1
  75. data/lib/hrr_rb_ssh/server.rb +23 -0
  76. data/lib/hrr_rb_ssh/transport/compression_algorithm/functionable.rb +1 -1
  77. data/lib/hrr_rb_ssh/transport/compression_algorithm/unfunctionable.rb +1 -1
  78. data/lib/hrr_rb_ssh/transport/encryption_algorithm/functionable.rb +3 -3
  79. data/lib/hrr_rb_ssh/transport/encryption_algorithm/unfunctionable.rb +1 -1
  80. data/lib/hrr_rb_ssh/transport/kex_algorithm/diffie_hellman.rb +8 -48
  81. data/lib/hrr_rb_ssh/transport/kex_algorithm/diffie_hellman_group_exchange.rb +11 -51
  82. data/lib/hrr_rb_ssh/transport/kex_algorithm/elliptic_curve_diffie_hellman.rb +8 -48
  83. data/lib/hrr_rb_ssh/transport/kex_algorithm/iv_computable.rb +57 -0
  84. data/lib/hrr_rb_ssh/transport/mac_algorithm/functionable.rb +2 -2
  85. data/lib/hrr_rb_ssh/transport/mac_algorithm/unfunctionable.rb +1 -1
  86. data/lib/hrr_rb_ssh/transport/receiver.rb +1 -1
  87. data/lib/hrr_rb_ssh/transport/sender.rb +1 -1
  88. data/lib/hrr_rb_ssh/transport/sequence_number.rb +1 -1
  89. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp256.rb +2 -56
  90. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384.rb +2 -56
  91. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp521.rb +2 -56
  92. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/functionable.rb +29 -0
  93. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ssh_dss.rb +2 -50
  94. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ssh_rsa.rb +2 -31
  95. data/lib/hrr_rb_ssh/transport.rb +83 -81
  96. data/lib/hrr_rb_ssh/version.rb +1 -1
  97. data/lib/hrr_rb_ssh.rb +4 -0
  98. metadata +32 -37
  99. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256/ecdsa_signature_blob.rb +0 -27
  100. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256/public_key_blob.rb +0 -28
  101. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256/signature.rb +0 -27
  102. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256/signature_blob.rb +0 -33
  103. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/ecdsa_signature_blob.rb +0 -27
  104. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/public_key_blob.rb +0 -28
  105. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/signature.rb +0 -27
  106. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/signature_blob.rb +0 -33
  107. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/ecdsa_signature_blob.rb +0 -27
  108. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/public_key_blob.rb +0 -28
  109. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/signature.rb +0 -27
  110. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/signature_blob.rb +0 -33
  111. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_dss/public_key_blob.rb +0 -30
  112. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_dss/signature.rb +0 -27
  113. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_dss/signature_blob.rb +0 -33
  114. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_rsa/public_key_blob.rb +0 -28
  115. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_rsa/signature.rb +0 -27
  116. data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_rsa/signature_blob.rb +0 -33
  117. data/lib/hrr_rb_ssh/transport/mode.rb +0 -11
  118. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp256/ecdsa_signature_blob.rb +0 -23
  119. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384/ecdsa_signature_blob.rb +0 -23
  120. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384/public_key_blob.rb +0 -25
  121. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384/signature.rb +0 -23
  122. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp521/public_key_blob.rb +0 -25
  123. data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp521/signature.rb +0 -23
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class EcdsaSha2Nistp256
13
- module SignatureBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'session identifier'],
19
- [DataType::Byte, :'message number'],
20
- [DataType::String, :'user name'],
21
- [DataType::String, :'service name'],
22
- [DataType::String, :'method name'],
23
- [DataType::Boolean, :'with signature'],
24
- [DataType::String, :'public key algorithm name'],
25
- [DataType::String, :'public key blob'],
26
- ]
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,27 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class EcdsaSha2Nistp384
13
- module EcdsaSignatureBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::Mpint, :'r'],
19
- [DataType::Mpint, :'s'],
20
- ]
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,28 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class EcdsaSha2Nistp384
13
- module PublicKeyBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'public key algorithm name'],
19
- [DataType::String, :'[identifier]'],
20
- [DataType::String, :'Q'],
21
- ]
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,27 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class EcdsaSha2Nistp384
13
- module Signature
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'public key algorithm name'],
19
- [DataType::String, :'signature blob'],
20
- ]
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class EcdsaSha2Nistp384
13
- module SignatureBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'session identifier'],
19
- [DataType::Byte, :'message number'],
20
- [DataType::String, :'user name'],
21
- [DataType::String, :'service name'],
22
- [DataType::String, :'method name'],
23
- [DataType::Boolean, :'with signature'],
24
- [DataType::String, :'public key algorithm name'],
25
- [DataType::String, :'public key blob'],
26
- ]
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,27 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class EcdsaSha2Nistp521
13
- module EcdsaSignatureBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::Mpint, :'r'],
19
- [DataType::Mpint, :'s'],
20
- ]
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,28 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class EcdsaSha2Nistp521
13
- module PublicKeyBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'public key algorithm name'],
19
- [DataType::String, :'[identifier]'],
20
- [DataType::String, :'Q'],
21
- ]
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,27 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class EcdsaSha2Nistp521
13
- module Signature
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'public key algorithm name'],
19
- [DataType::String, :'signature blob'],
20
- ]
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class EcdsaSha2Nistp521
13
- module SignatureBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'session identifier'],
19
- [DataType::Byte, :'message number'],
20
- [DataType::String, :'user name'],
21
- [DataType::String, :'service name'],
22
- [DataType::String, :'method name'],
23
- [DataType::Boolean, :'with signature'],
24
- [DataType::String, :'public key algorithm name'],
25
- [DataType::String, :'public key blob'],
26
- ]
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,30 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class SshDss
13
- module PublicKeyBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'public key algorithm name'],
19
- [DataType::Mpint, :'p'],
20
- [DataType::Mpint, :'q'],
21
- [DataType::Mpint, :'g'],
22
- [DataType::Mpint, :'y'],
23
- ]
24
- end
25
- end
26
- end
27
- end
28
- end
29
- end
30
- end
@@ -1,27 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class SshDss
13
- module Signature
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'public key algorithm name'],
19
- [DataType::String, :'signature blob'],
20
- ]
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class SshDss
13
- module SignatureBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'session identifier'],
19
- [DataType::Byte, :'message number'],
20
- [DataType::String, :'user name'],
21
- [DataType::String, :'service name'],
22
- [DataType::String, :'method name'],
23
- [DataType::Boolean, :'with signature'],
24
- [DataType::String, :'public key algorithm name'],
25
- [DataType::String, :'public key blob'],
26
- ]
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,28 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class SshRsa
13
- module PublicKeyBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'public key algorithm name'],
19
- [DataType::Mpint, :'e'],
20
- [DataType::Mpint, :'n'],
21
- ]
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,27 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class SshRsa
13
- module Signature
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'public key algorithm name'],
19
- [DataType::String, :'signature blob'],
20
- ]
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Authentication
9
- class Method
10
- class Publickey
11
- class Algorithm
12
- class SshRsa
13
- module SignatureBlob
14
- class << self
15
- include Codable
16
- end
17
- DEFINITION = [
18
- [DataType::String, :'session identifier'],
19
- [DataType::Byte, :'message number'],
20
- [DataType::String, :'user name'],
21
- [DataType::String, :'service name'],
22
- [DataType::String, :'method name'],
23
- [DataType::Boolean, :'with signature'],
24
- [DataType::String, :'public key algorithm name'],
25
- [DataType::String, :'public key blob'],
26
- ]
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,11 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- module HrrRbSsh
5
- class Transport
6
- module Mode
7
- SERVER = :server
8
- CLIENT = :client
9
- end
10
- end
11
- end
@@ -1,23 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Transport
9
- class ServerHostKeyAlgorithm
10
- class EcdsaSha2Nistp256
11
- module EcdsaSignatureBlob
12
- class << self
13
- include Codable
14
- end
15
- DEFINITION = [
16
- [DataType::Mpint, :'r'],
17
- [DataType::Mpint, :'s'],
18
- ]
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,23 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Transport
9
- class ServerHostKeyAlgorithm
10
- class EcdsaSha2Nistp384
11
- module EcdsaSignatureBlob
12
- class << self
13
- include Codable
14
- end
15
- DEFINITION = [
16
- [DataType::Mpint, :'r'],
17
- [DataType::Mpint, :'s'],
18
- ]
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,25 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Transport
9
- class ServerHostKeyAlgorithm
10
- class EcdsaSha2Nistp384
11
- module PublicKeyBlob
12
- class << self
13
- include Codable
14
- end
15
- DEFINITION = [
16
- [DataType::String, :'ecdsa-sha2-[identifier]'],
17
- [DataType::String, :'[identifier]'],
18
- [DataType::String, :'Q'],
19
- ]
20
- end
21
- end
22
- end
23
- end
24
- end
25
-
@@ -1,23 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Transport
9
- class ServerHostKeyAlgorithm
10
- class EcdsaSha2Nistp384
11
- module Signature
12
- class << self
13
- include Codable
14
- end
15
- DEFINITION = [
16
- [DataType::String, :'ecdsa-sha2-[identifier]'],
17
- [DataType::String, :'ecdsa_signature_blob'],
18
- ]
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,25 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Transport
9
- class ServerHostKeyAlgorithm
10
- class EcdsaSha2Nistp521
11
- module PublicKeyBlob
12
- class << self
13
- include Codable
14
- end
15
- DEFINITION = [
16
- [DataType::String, :'ecdsa-sha2-[identifier]'],
17
- [DataType::String, :'[identifier]'],
18
- [DataType::String, :'Q'],
19
- ]
20
- end
21
- end
22
- end
23
- end
24
- end
25
-
@@ -1,23 +0,0 @@
1
- # coding: utf-8
2
- # vim: et ts=2 sw=2
3
-
4
- require 'hrr_rb_ssh/data_type'
5
- require 'hrr_rb_ssh/codable'
6
-
7
- module HrrRbSsh
8
- class Transport
9
- class ServerHostKeyAlgorithm
10
- class EcdsaSha2Nistp521
11
- module Signature
12
- class << self
13
- include Codable
14
- end
15
- DEFINITION = [
16
- [DataType::String, :'ecdsa-sha2-[identifier]'],
17
- [DataType::String, :'ecdsa_signature_blob'],
18
- ]
19
- end
20
- end
21
- end
22
- end
23
- end