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.
- checksums.yaml +4 -4
- data/.travis.yml +12 -2
- data/README.md +11 -9
- data/demo/echo_server.rb +50 -42
- data/demo/server.rb +81 -62
- data/demo/subsystem_echo_server.rb +54 -47
- data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm/ecdsa_sha2_nistp521 → algorithm/publickey/ecdsa_sha2}/ecdsa_signature_blob.rb +3 -3
- data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm/ecdsa_sha2_nistp256 → algorithm/publickey/ecdsa_sha2}/public_key_blob.rb +5 -6
- data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm/ecdsa_sha2_nistp256 → algorithm/publickey/ecdsa_sha2}/signature.rb +5 -5
- data/lib/hrr_rb_ssh/algorithm/publickey/ecdsa_sha2.rb +85 -0
- data/lib/hrr_rb_ssh/algorithm/publickey/ecdsa_sha2_nistp256.rb +19 -0
- data/lib/hrr_rb_ssh/algorithm/publickey/ecdsa_sha2_nistp384.rb +19 -0
- data/lib/hrr_rb_ssh/algorithm/publickey/ecdsa_sha2_nistp521.rb +19 -0
- data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm → algorithm/publickey}/ssh_dss/public_key_blob.rb +3 -3
- data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm → algorithm/publickey}/ssh_dss/signature.rb +4 -4
- data/lib/hrr_rb_ssh/algorithm/publickey/ssh_dss.rb +90 -0
- data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm → algorithm/publickey}/ssh_rsa/public_key_blob.rb +3 -4
- data/lib/hrr_rb_ssh/{transport/server_host_key_algorithm → algorithm/publickey}/ssh_rsa/signature.rb +4 -4
- data/lib/hrr_rb_ssh/algorithm/publickey/ssh_rsa.rb +67 -0
- data/lib/hrr_rb_ssh/algorithm/publickey.rb +32 -0
- data/lib/hrr_rb_ssh/algorithm.rb +9 -0
- data/lib/hrr_rb_ssh/authentication/method/none/context.rb +1 -1
- data/lib/hrr_rb_ssh/authentication/method/none.rb +1 -1
- data/lib/hrr_rb_ssh/authentication/method/password/context.rb +1 -1
- data/lib/hrr_rb_ssh/authentication/method/password.rb +1 -1
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256.rb +2 -65
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384.rb +2 -65
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521.rb +2 -65
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/functionable.rb +54 -0
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/signature_blob.rb +31 -0
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_dss.rb +2 -73
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_rsa.rb +2 -55
- data/lib/hrr_rb_ssh/authentication/method/publickey.rb +3 -3
- data/lib/hrr_rb_ssh/authentication.rb +15 -15
- data/lib/hrr_rb_ssh/codable.rb +1 -1
- data/lib/hrr_rb_ssh/compat/openssh/public_key.rb +3 -40
- data/lib/hrr_rb_ssh/compat/ruby/array.rb +14 -0
- data/lib/hrr_rb_ssh/compat/ruby/openssl/bn.rb +20 -0
- data/lib/hrr_rb_ssh/compat/ruby/openssl.rb +4 -0
- data/lib/hrr_rb_ssh/compat/ruby/queue.rb +38 -0
- data/lib/hrr_rb_ssh/compat/ruby.rb +6 -0
- data/lib/hrr_rb_ssh/compat.rb +1 -63
- data/lib/hrr_rb_ssh/connection/channel/channel_type/direct_tcpip.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/forwarded_tcpip.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/proc_chain/chain_context.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/proc_chain.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env/context.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/env.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/exec/context.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/exec.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/pty_req/context.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/pty_req.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/shell/context.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/shell.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/subsystem/context.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/subsystem.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change/context.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/window_change.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb +1 -1
- data/lib/hrr_rb_ssh/connection/channel.rb +22 -22
- data/lib/hrr_rb_ssh/connection/global_request_handler.rb +1 -1
- data/lib/hrr_rb_ssh/connection/request_handler/reference_env_request_handler.rb +1 -1
- data/lib/hrr_rb_ssh/connection/request_handler/reference_exec_request_handler.rb +3 -56
- data/lib/hrr_rb_ssh/connection/request_handler/reference_pty_req_request_handler.rb +50 -13
- data/lib/hrr_rb_ssh/connection/request_handler/reference_shell_request_handler.rb +3 -56
- data/lib/hrr_rb_ssh/connection/request_handler/reference_window_change_request_handler.rb +1 -1
- data/lib/hrr_rb_ssh/connection/request_handler.rb +1 -1
- data/lib/hrr_rb_ssh/connection.rb +40 -40
- data/lib/hrr_rb_ssh/data_type.rb +0 -3
- data/lib/hrr_rb_ssh/error/closed_authentication.rb +9 -0
- data/lib/hrr_rb_ssh/{closed_transport_error.rb → error/closed_connection.rb} +3 -1
- data/lib/hrr_rb_ssh/{closed_authentication_error.rb → error/closed_transport.rb} +3 -1
- data/lib/hrr_rb_ssh/error.rb +11 -0
- data/lib/hrr_rb_ssh/{closed_connection_error.rb → mode.rb} +3 -1
- data/lib/hrr_rb_ssh/server.rb +23 -0
- data/lib/hrr_rb_ssh/transport/compression_algorithm/functionable.rb +1 -1
- data/lib/hrr_rb_ssh/transport/compression_algorithm/unfunctionable.rb +1 -1
- data/lib/hrr_rb_ssh/transport/encryption_algorithm/functionable.rb +3 -3
- data/lib/hrr_rb_ssh/transport/encryption_algorithm/unfunctionable.rb +1 -1
- data/lib/hrr_rb_ssh/transport/kex_algorithm/diffie_hellman.rb +8 -48
- data/lib/hrr_rb_ssh/transport/kex_algorithm/diffie_hellman_group_exchange.rb +11 -51
- data/lib/hrr_rb_ssh/transport/kex_algorithm/elliptic_curve_diffie_hellman.rb +8 -48
- data/lib/hrr_rb_ssh/transport/kex_algorithm/iv_computable.rb +57 -0
- data/lib/hrr_rb_ssh/transport/mac_algorithm/functionable.rb +2 -2
- data/lib/hrr_rb_ssh/transport/mac_algorithm/unfunctionable.rb +1 -1
- data/lib/hrr_rb_ssh/transport/receiver.rb +1 -1
- data/lib/hrr_rb_ssh/transport/sender.rb +1 -1
- data/lib/hrr_rb_ssh/transport/sequence_number.rb +1 -1
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp256.rb +2 -56
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384.rb +2 -56
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp521.rb +2 -56
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/functionable.rb +29 -0
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ssh_dss.rb +2 -50
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ssh_rsa.rb +2 -31
- data/lib/hrr_rb_ssh/transport.rb +83 -81
- data/lib/hrr_rb_ssh/version.rb +1 -1
- data/lib/hrr_rb_ssh.rb +4 -0
- metadata +32 -37
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256/ecdsa_signature_blob.rb +0 -27
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256/public_key_blob.rb +0 -28
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256/signature.rb +0 -27
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256/signature_blob.rb +0 -33
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/ecdsa_signature_blob.rb +0 -27
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/public_key_blob.rb +0 -28
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/signature.rb +0 -27
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/signature_blob.rb +0 -33
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/ecdsa_signature_blob.rb +0 -27
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/public_key_blob.rb +0 -28
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/signature.rb +0 -27
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/signature_blob.rb +0 -33
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_dss/public_key_blob.rb +0 -30
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_dss/signature.rb +0 -27
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_dss/signature_blob.rb +0 -33
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_rsa/public_key_blob.rb +0 -28
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_rsa/signature.rb +0 -27
- data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ssh_rsa/signature_blob.rb +0 -33
- data/lib/hrr_rb_ssh/transport/mode.rb +0 -11
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp256/ecdsa_signature_blob.rb +0 -23
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384/ecdsa_signature_blob.rb +0 -23
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384/public_key_blob.rb +0 -25
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384/signature.rb +0 -23
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp521/public_key_blob.rb +0 -25
- data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp521/signature.rb +0 -23
data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp256/signature_blob.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/public_key_blob.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/signature.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp384/signature_blob.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/public_key_blob.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/signature.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/authentication/method/publickey/algorithm/ecdsa_sha2_nistp521/signature_blob.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp256/ecdsa_signature_blob.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384/ecdsa_signature_blob.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384/public_key_blob.rb
DELETED
|
@@ -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
|
data/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp521/public_key_blob.rb
DELETED
|
@@ -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
|